tcl::tra...rm::zlib(n)

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

πŸ’– tcl::tra...rm::zlib(n) πŸ’–

ok so bestie, welcome to the n section of the manual β€” this is tcl::transform::zlib, part of the tcllib crew, and it is literally the zlib (de)compression glow-up for your channels. ✨


🌸 NAME 🌸

tcl::transform::zlib β€” zlib (de)compression, no cap πŸ’…


✨ SYNOPSIS ✨

package require Tcl 8.6 9

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

package require tcl::transform::zlib ?1.1?

::tcl::transform::zlib chan ?level?

like. look at her. so clean. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

So the tcl::transform::zlib package gives you a command that makes a channel transformation. What does that even mean? It means: whatever you write into it gets zlib-compressed, and whatever you read out of it gets decompressed. it's giving magical little squeeze-and-unsqueeze machine and honestly? obsessed. 😌

The internal TclOO class that actually implements this transform handler is a subclass of the tcl::transform::core framework β€” so it's inheriting all the core girlboss behaviour, iykyk. πŸ‘‘


πŸ’… API πŸ’…

  • ::tcl::transform::zlib chan ?level? β€” this command creates a zlib compressor transformation on top of the channel chan and hands you back its handle. πŸŽ€

and the level? that's the drama meter β€” it says how much effort gets put into the compression. it runs from 0 all the way to 9, and it defaults to 4. so if you don't say anything, she's giving a comfy middle-effort vibe. πŸ’–


😭 BUGS, IDEAS, FEEDBACK 😭

ngl, this document β€” and the package it describes β€” will undoubtedly contain bugs and other problems. it's giving "we're all just doing our best out here." πŸ™ˆ

Please report such things in the category virtchannel of the Tcllib Trackers: http://core.tcl.tk/tcllib/reportlist. And please also send in any ideas for enhancements you have for either the package and/or the documentation β€” we want the ideas, we want the glow-up. ✨

When you're proposing code changes, please provide unified diffs, i.e. the output of diff -u. periodt. πŸ’…

also note: attachments are strongly preferred over inlined patches. you make an attachment 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. that's the move. 🫢

πŸ”₯ KEYWORDS πŸ”₯

channel transformation, compression, decompression, reflected channel, tip 230, tip 234, transformation, virtual channel, zlib


🌈 CATEGORY 🌈

Channels


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


okay that's the whole page, bestie. this was tcllib version 1.1, and you just read the manual page for tcl::tra...rm::zlib(n). slay, go compress something. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from