1tcl::chan::memchan(n) Reflected/virtual channel support tcl::chan::memchan(n)
2
3
4
5______________________________________________________________________________
6
8 tcl::chan::memchan - In-memory channel
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::memchan ?1.0.4?
18
19 ::tcl::chan::memchan
20
21______________________________________________________________________________
22
24 The tcl::chan::memchan package provides a command creating channels
25 which live purely in memory. They provide random-access, i.e. are seek‐
26 able. This is equivalent to the memchan channels provided by the pack‐
27 age Memchan, except that this is written in pure Tcl, not C. On the
28 other hand, Memchan is usable with Tcl 8.4 and before, whereas this
29 package requires Tcl 8.5 or higher, and TclOO.
30
31 Packages related to this are tcl::chan::string and tcl::chan::variable.
32
33 The internal TclOO class implementing the channel handler is a sub-
34 class of the tcl::chan::events framework.
35
37 ::tcl::chan::memchan
38 This command creates a new memchan channel and returns its han‐
39 dle.
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-2017 Andreas Kupries <andreas_kupries@users.sourceforge.net>
64
65
66
67
68tcllib 1.0.4 tcl::chan::memchan(n)