tcl::t...rm::hex(3tcl)
π 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 channelchan, 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 π
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
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· Tcl
- Copyright (c) 2009 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms