tcl::t...rm::hex(3tcl)

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

πŸ’– tcl::transform::hex β€” the NAME moment πŸ’–

okay bestie, gather round, because this is tcl::transform::hex, and it is literally the Hexadecimal encoding transformation from the reflected/virtual channel support corner of Tcl. no cap. πŸŽ€


✨ SYNOPSIS ✨

package require Tcl 8.6 9

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

package require tcl::transform::hex ?1.1?

::tcl::transform::hex chan

like yes, three whole package require lines, she's thorough πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so the tcl::transform::hex package hands you a command that creates a channel transformation. and what does that transformation do? two things, bestie, and she does both flawlessly:

  • she hex encodes the data you write to her ✍️
  • and she decodes the data you read from her πŸ‘€

it's giving bouncer at the club but for bytes. everyone gets checked on the way in and on the way out.

there's a related transformation hanging out in this same module, and it's tcl::transform::base64 β€” her cousin, also iconic, also invited to the function.

oh and btw, the internal TclOO class that's actually implementing the transform handler? she's a subclass of the tcl::transform::core framework. nepotism but make it architecture. πŸ‘‘


🌸 API 🌸

  • ::tcl::transform::hex chan β€” this command creates a hex transformation sitting right on top of the channel chan, and then returns its handle. that's it, that's the whole job, and she ate. 🫢

😭 BUGS, IDEAS, FEEDBACK 😭

ngl this document β€” and the package it describes β€” will undoubtedly contain bugs and other problems. not me being dramatic, that's just what it says. so pls:

  • report bugs in the category virtchannel of the Tcllib Trackers: http://core.tcl.tk/tcllib/reportlist
  • also drop any ideas you have for enhancements to either the package and/or the documentation. we want them fr fr.

when you're proposing code changes, pls provide unified diffs, i.e. the output of diff -u. that's the vibe. 🧚

also important: attachments are strongly preferred over inlined patches. how do you attach one? go to the Edit form of the ticket immediately after it's created, then use the left-most button in the secondary navigation bar. iykyk. πŸ’€

⭐ KEYWORDS ⭐

channel transformation, hexadecimal, reflected channel, tip 230, transformation, virtual channel


🌈 CATEGORY 🌈

Channels


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


and that's the whole page, bestie!! this little legend lives in tcllib, version 1.1 β€” shoutout to tcllib 1.1 for carrying this entire manual page on her back. πŸ’œβœ¨ mwah, go hex something. πŸ“

πŸ“¦ where this page comes from