1tcl::transform::adler32(Rne)flected/virtual channel supptocrlt::transform::adler32(n)
2
3
4
5______________________________________________________________________________
6
8 tcl::transform::adler32 - Adler32 transformation
9
11 package require Tcl 8.6
12
13 package require tcl::transform::core ?1?
14
15 package require tcl::transform::adler32 ?1?
16
17 ::tcl::transform::adler32 chan -option value...
18
19______________________________________________________________________________
20
22 The tcl::transform::adler32 package provides a command creating a chan‐
23 nel transformation which passes the read and written bytes through un‐
24 changed (like tcl::transform::identity), but additionally continuously
25 computes the adler32 checksums of the data it has seen for each direc‐
26 tion and stores them in Tcl variables specified at construction time.
27
28 Related transformations in this module are tcl::transform::counter,
29 tcl::transform::crc32, tcl::transform::identity, and tcl::trans‐
30 form::observe.
31
32 The internal TclOO class implementing the transform handler is a sub-
33 class of the tcl::transform::core framework.
34
36 ::tcl::transform::adler32 chan -option value...
37 This command creates an adler32 checksumming transformation on
38 top of the channel chan and returns its handle. The accepted op‐
39 tions are
40
41 -read-variable varname
42 The value of the option is the name of a global or names‐
43 paced variable, the location where the transformation has
44 to store the adler32 checksum of the data read from the
45 channel.
46
47 If not specified, or the empty string, the checksum of
48 the read direction is not saved.
49
50 -write-variable varname
51 The value of the option is the name of a global or names‐
52 paced variable, the location where the transformation has
53 to store the adler32 checksum of the data written to the
54 channel.
55
56 If not specified, or the empty string, the checksum of
57 the write direction is not saved.
58
60 This document, and the package it describes, will undoubtedly contain
61 bugs and other problems. Please report such in the category virtchan‐
62 nel of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist].
63 Please also report any ideas for enhancements you may have for either
64 package and/or documentation.
65
66 When proposing code changes, please provide unified diffs, i.e the out‐
67 put of diff -u.
68
69 Note further that attachments are strongly preferred over inlined
70 patches. Attachments can be made by going to the Edit form of the
71 ticket immediately after its creation, and then using the left-most
72 button in the secondary navigation bar.
73
75 adler32, channel transformation, checksum, reflected channel, tip 230,
76 transformation, virtual channel
77
79 Channels
80
82 Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
83
84
85
86
87tcllib 1 tcl::transform::adler32(n)