1tcl::chan::string(n)   Reflected/virtual channel support  tcl::chan::string(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tcl::chan::string - Read-only in-memory channel
9

SYNOPSIS

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::string  ?1.0.3?
18
19       ::tcl::chan::string content
20
21______________________________________________________________________________
22

DESCRIPTION

24       The  tcl::chan::string  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 they
27       are read-only however, their content is provided at the  time  of  con‐
28       struction and immutable afterward.
29
30       Packages  related  to  this are tcl::chan::memchan and tcl::chan::vari‐
31       able.
32
33       The internal TclOO class implementing the channel  handler  is  a  sub-
34       class of the tcl::chan::events framework.
35

API

37       ::tcl::chan::string content
38              This  command  creates a new string channel and returns its han‐
39              dle. The channel provides random read-only access to the content
40              string.
41

BUGS, IDEAS, FEEDBACK

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

KEYWORDS

58       in-memory channel, reflected channel, tip 219, virtual channel
59

CATEGORY

61       Channels
62
64       Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
65
66
67
68
69tcllib                               1.0.3                tcl::chan::string(n)
Impressum