memchan - C API for creating memory channels
The memchan package provides a C API for use by third-party extension writers. This is exposed by a Tcl stubs library table to reduce version dependency as is available for Tcl itself.
Each of these functions creates an returns a channel exactly as described in the Tcl command pages for each of the memchan commands. The Tcl commands internally call these functions to create the channels.
The memchan channel accepts an initialSize argument to permit pre-allocating space for the internal buffer. Normally this may be set to 0.
The fifo2 API function looks a little different because it must return two linked channels.
Tcl_GetChannelName
Copyright © 2004 Pat Thoyts <patthoyts@users.sourceforge.net>