tcl::t...base64(3tcl)

πŸ“¦
version 2.0 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– tcl::transform::base64 β€” the glow-up edition πŸ’–

okay bestie, welcome to the tcl::transform::base64 manual page, part of the Reflected/virtual channel support collection in section 3tcl of the Tcllib docs. sit down, grab a strawberry smoothie πŸ“, and let's get into it.


✨ NAME ✨

tcl::transform::base64 β€” Base64 encoding transformation. that's it, that's the whole vibe. it encodes. it decodes. she's versatile. πŸ’…


✨ SYNOPSIS ✨

package require Tcl 8.6 9

package require tcl::transform::core ?1.1?

package require tcl::transform::base64 ?1.1?

::tcl::transform::base64 chan

look at her. four little lines. iconic. πŸ‘‘


✨ DESCRIPTION ✨

so the tcl::transform::base64 package gives you a command that creates a channel transformation, and this transformation does two things at once, like a multitasking queen:

  • it base64 encodes the data you write to it πŸ“
  • it decodes the data you read from it πŸ“–

a related transformation hanging out in this same module is tcl::transform::hex β€” different flavor, same energy, go say hi.

also, lowkey important detail: the internal TclOO class that implements the transform handler is a subclass of the tcl::transform::core framework. so she's not doing this alone, she's got a whole family tree. 🌈


✨ API ✨

  • ::tcl::transform::base64 chan β€” this command creates a base64 transformation sitting on top of the channel chan, and then it returns its handle. that handle? your new bestie. keep it close. 🫢

πŸ› BUGS, IDEAS, FEEDBACK πŸ›

ngl, this document and the package it describes will undoubtedly contain bugs and other problems. it's giving "we're all human". 😭 so please report them in the category virtchannel of the Tcllib Trackers:

http://core.tcl.tk/tcllib/reportlist

and while you're at it, if you have any ideas for enhancements β€” for the package, for the docs, either, both, whatever β€” please report those too. we love ideas. ideas are the main character. ✨

when proposing code changes, please provide unified diffs, i.e. the output of diff -u. fr fr, that's the format. don't skip this step bestie.

also note, and this is important: attachments are strongly preferred over inlined patches. how do you attach? simple. go to the Edit form of the ticket immediately after its creation, then use the left-most button in the secondary navigation bar. that's it. that's the whole ritual. πŸŽ€


✨ KEYWORDS ✨

base64, channel transformation, reflected channel, tip 230, tip 317, transformation, virtual channel

(iykyk πŸ’œ)


✨ CATEGORY ✨

Channels πŸ¦‹


Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>

and that's the page, bestie!! πŸŽ‰ this whole thing is from tcllib, version 1.1 β€” shoutout to Andreas Kupries for the 2009 copyright, we stan a legend. πŸ‘‘βœ¨ now go forth and transform some channels, you absolute icon. no cap. πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from