tcl::t...adler32(3tcl)
π tcl::transform::adler32 β Adler32 transformation π
okay bestie, welcome to the Reflected/virtual channel support corner of the manual, section 3tcl, and today's main character is tcl::transform::adler32. she's a transformation. she's a checksum girlie. let's get into it π
β¨ NAME β¨
tcl::transform::adler32 β Adler32 transformation
πΈ SYNOPSIS πΈ
package require Tcl 8.6 9
package require tcl::transform::core ?1.1?
package require tcl::transform::adler32 ?1.1?
::tcl::transform::adler32 chan -option value...
π¦ DESCRIPTION π¦
so the tcl::transform::adler32 package hands you a command that builds a channel transformation. what does it do? it lets the read and written bytes pass through completely unchanged β literally like tcl::transform::identity, no edits, no filter, no drama β but additionally it continuously computes the adler32</> checksums of all the data it has seen, for each direction, and stashes them in Tcl variables that you name at construction time. it's giving "I'm just standing here looking pretty while also doing math in the background" πβ¨
its related transformations in this module are tcl::transform::counter, tcl::transform::crc32, tcl::transform::identity, and tcl::transform::observe β the whole friend group, fr fr π«Ά
and the internal TclOO class that implements the transform handler? it's a subclass of the tcl::transform::core framework. iconic lineage π
π API π
::tcl::transform::adler32 chan -option value...β this command creates an adler32 checksumming transformation on top of the channelchanand returns its handle. the accepted options are:-read-variable varnameβ the value of this option is the name of a global or namespaced variable, i.e. the spot where the transformation has to store the adler32 checksum of the data read from the channel.
if it's not specified, or it's the empty string, then the checksum of the read direction is not saved. no variable, no vibes. π
-write-variable varnameβ the value of this option is the name of a global or namespaced variable, i.e. the spot where the transformation has to store the adler32 checksum of the data written to the channel.
if it's not specified, or it's the empty string, then the checksum of the write direction is not saved. same deal. π
π BUGS, IDEAS, FEEDBACK π
ngl, this document and the package it describes will undoubtedly contain bugs and other problems. like, obviously. please report those in the category virtchannel of the Tcllib Trackers at [http://core.tcl.tk/tcllib/reportlist]. and please also send in any ideas for enhancements you may have for either the package and/or the documentation β we want the glow-up ideas, bestie π
when you're proposing code changes, please provide unified diffs, i.e. the output of diff -u.
also note that attachments are strongly preferred over inlined patches. you can attach stuff by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. iykyk π
β KEYWORDS β
adler32, channel transformation, checksum, 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, periodt π
this was tcllib, version 1.1, section 3tcl β thanks for reading, bestie, go checksum something and slay β¨π¦πΈ
π¦ 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