1tcl::chan::variable(n) Reflected/virtual channel supporttcl::chan::variable(n)
2
3
4
5______________________________________________________________________________
6
8 tcl::chan::variable - In-memory channel using variable for storage
9
11 package require Tcl 8.5
12
13 package require TclOO
14
15 package require tcl::chan::events ?1?
16
17 package require tcl::chan::variable ?1.0.4?
18
19 ::tcl::chan::variable varname
20
21______________________________________________________________________________
22
24 The tcl::chan::variable package provides a command creating channels
25 which live purely in memory. They provide random-access, i.e. are seek‐
26 able. In contrast to the channels created by tcl::chan::memchan the
27 data is not hidden in the channel however, but stored in an associated
28 variable, specified at the time of construction.
29
30 Packages related to this are tcl::chan::memchan and tcl::chan::string.
31
32 The internal TclOO class implementing the channel handler is a sub-
33 class of the tcl::chan::events framework.
34
36 ::tcl::chan::variable varname
37 This command creates a new variable channel and returns its han‐
38 dle. The content of the channel is stored in the associated
39 namespace variable varname.
40
42 This document, and the package it describes, will undoubtedly contain
43 bugs and other problems. Please report such in the category virtchan‐
44 nel of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist].
45 Please also report any ideas for enhancements you may have for either
46 package and/or documentation.
47
48 When proposing code changes, please provide unified diffs, i.e the out‐
49 put of diff -u.
50
51 Note further that attachments are strongly preferred over inlined
52 patches. Attachments can be made by going to the Edit form of the
53 ticket immediately after its creation, and then using the left-most
54 button in the secondary navigation bar.
55
57 in-memory channel, reflected channel, tip 219, virtual channel
58
60 Channels
61
63 Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
64
65
66
67
68tcllib 1.0.4 tcl::chan::variable(n)