1tcl::transform::limitsizRee(fnl)ected/virtual channel sutpcplo:r:ttransform::limitsize(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tcl::transform::limitsize - limiting input
9

SYNOPSIS

11       package require Tcl  8.6
12
13       package require tcl::transform::core  ?1?
14
15       package require tcl::transform::limitsize  ?1?
16
17       ::tcl::transform::limitsize chan max
18
19______________________________________________________________________________
20

DESCRIPTION

22       The  tcl::transform::limitsize  package  provides  a command creating a
23       channel transformation which limits the number of characters which  can
24       be read from the channel. A generator for an artificial EOF.
25
26       The  internal  TclOO class implementing the transform handler is a sub-
27       class of the tcl::transform::core framework.
28

API

30       ::tcl::transform::limitsize chan max
31              This command creates a size limiting transformation  on  top  of
32              the channel chan and returns its handle.
33
34              max  is  the  number of bytes which can be read from the channel
35              before EOF is signaled by the transformation. Note that  popping
36              the transformation clears the EOF it generated as well.
37

BUGS, IDEAS, FEEDBACK

39       This  document,  and the package it describes, will undoubtedly contain
40       bugs and other problems.  Please report such in the category  virtchan‐
41       nel  of  the  Tcllib  Trackers  [http://core.tcl.tk/tcllib/reportlist].
42       Please also report any ideas for enhancements you may have  for  either
43       package and/or documentation.
44
45       When proposing code changes, please provide unified diffs, i.e the out‐
46       put of diff -u.
47
48       Note further that  attachments  are  strongly  preferred  over  inlined
49       patches.  Attachments  can  be  made  by  going to the Edit form of the
50       ticket immediately after its creation, and  then  using  the  left-most
51       button in the secondary navigation bar.
52

KEYWORDS

54       channel  transformation,  limitsize, reflected channel, size limit, tip
55       230, transformation, virtual channel
56

CATEGORY

58       Channels
59
61       Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
62
63
64
65
66tcllib                                 1          tcl::transform::limitsize(n)
Impressum