tcl::transform::hex(n)

πŸ“¦
version 2.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ tcl::transform::hex β€” bestie edition ✨

okay so real talk, this is the manual page for tcl::transform::hex, living under the whole Reflected/virtual channel support umbrella in Tcllib. it's giving hexadecimal, it's giving channel magic, and honestly? iconic. πŸ’…


🌸 NAME 🌸

tcl::transform::hex β€” Hexadecimal encoding transformation. that's it, that's the whole vibe. hex go in, hex go out. πŸ¦‹


⭐ 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

so like, you need Tcl 8.6 or 9 bestie, no cap. then you pull in the core framework and the hex transform itself, both optionally at version 1.1, and then you're off to the races. 🏁


πŸ’– DESCRIPTION πŸ’–

The tcl::transform::hex package hands you a command that creates a channel transformation. and what does that little transformation do?? literally the whole thing:

  • data you write to it gets hex encoded ✨
  • data you read from it gets decoded back out πŸ’«

it's a glow-up in both directions, fr fr.

a related transformation chillin' in this module is tcl::transform::base64 β€” same energy, different alphabet, iykyk.

and the internal TclOO class that implements the transform handler is a subclass of the tcl::transform::core framework. so it inherits all that core main-character energy. πŸ‘‘


πŸŽ€ API πŸŽ€

  • ::tcl::transform::hex chan β€” this command creates a hex transformation sitting right on top of the channel chan, and returns its handle back to you. that handle? that's your new bestie. hold onto it. 🫢

πŸ’€ BUGS, IDEAS, FEEDBACK πŸ’€

ngl, this document and the package it describes will undoubtedly contain bugs and other problems. like, no shade, it's just how software is. 😭

please report them in the virtchannel category of the Tcllib Trackers:

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

also please send any ideas for enhancements you have for either the package and/or the documentation. we wanna hear it. πŸ™ˆ

when you're proposing code changes, please provide unified diffs, i.e the output of diff -u. this is not optional bestie, it's the way. 🧚

and one more thing: attachments are strongly preferred over inlined patches. to attach something, go to the Edit form of the ticket immediately after its creation, then use the left-most button in the secondary navigation bar. yes, the left-most one. the one all the way over there. πŸ‘ˆ


πŸ”₯ KEYWORDS πŸ”₯

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


🌈 CATEGORY 🌈

Channels. (yes, that's the category. channels. we love channels.) πŸ’œ


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


okay and that's the whole page bestie, you ate it. this was tcl::transform::hex(n) from tcllib, version 1.1, and honestly it's been a pleasure. stay hexed, stay decoded, and remember: the transformation was inside you the whole time. periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from