1tcl::transform::adler32(Rne)flected/virtual channel supptocrlt::transform::adler32(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tcl::transform::adler32 - Adler32 transformation
9

SYNOPSIS

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

DESCRIPTION

22       The tcl::transform::adler32 package provides a command creating a chan‐
23       nel transformation which passes the  read  and  written  bytes  through
24       unchanged  (like  tcl::transform::identity),  but additionally continu‐
25       ously computes the adler32 checksums of the data it has seen  for  each
26       direction  and  stores  them in Tcl variables specified at construction
27       time.
28
29       Related transformations in  this  module  are  tcl::transform::counter,
30       tcl::transform::crc32,    tcl::transform::identity,   and   tcl::trans‐
31       form::observe.
32
33       The internal TclOO class implementing the transform handler is  a  sub-
34       class of the tcl::transform::core framework.
35

API

37       ::tcl::transform::adler32 chan -option value...
38              This  command  creates an adler32 checksumming transformation on
39              top of the channel chan and returns  its  handle.  The  accepted
40              options are
41
42              -read-variable varname
43                     The value of the option is the name of a global or names‐
44                     paced variable, the location where the transformation has
45                     to  store  the adler32 checksum of the data read from the
46                     channel.
47
48                     If not specified, or the empty string,  the  checksum  of
49                     the read direction is not saved.
50
51              -write-variable varname
52                     The value of the option is the name of a global or names‐
53                     paced variable, the location where the transformation has
54                     to  store the adler32 checksum of the data written to the
55                     channel.
56
57                     If not specified, or the empty string,  the  checksum  of
58                     the write direction is not saved.
59

BUGS, IDEAS, FEEDBACK

61       This  document,  and the package it describes, will undoubtedly contain
62       bugs and other problems.  Please report such in the category  virtchan‐
63       nel  of  the  Tcllib  Trackers  [http://core.tcl.tk/tcllib/reportlist].
64       Please also report any ideas for enhancements you may have  for  either
65       package and/or documentation.
66
67       When proposing code changes, please provide unified diffs, i.e the out‐
68       put of diff -u.
69
70       Note further that  attachments  are  strongly  preferred  over  inlined
71       patches.  Attachments  can  be  made  by  going to the Edit form of the
72       ticket immediately after its creation, and  then  using  the  left-most
73       button in the secondary navigation bar.
74

KEYWORDS

76       adler32,  channel transformation, checksum, reflected channel, tip 230,
77       transformation, virtual channel
78

CATEGORY

80       Channels
81
83       Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
84
85
86
87
88tcllib                                 1            tcl::transform::adler32(n)
Impressum