Description: This function returns an in-memory read/write (expanding) buffer stream.
Returns: Buffer
Usage: Script
Format: BuffStream(Buffer)
Parameters: Buffer { text } { required } { no default: }
Any text or buffer expression. This serves as the initial content of the stream.
Comments: This function returns a stream with the contents of Buffer. The pointer at which an action (read or write) commences will be at the start of the stream. Writing to this stream can overwrite and/or expand the size of this initial stream. In-memory stream can be considerably faster to work with than disk-based streams. Streams can be easier to work with than their older text-buffer counterparts.
Example:
stream = BuffStream("0123456789");
In this example, the variable stream would contain "0123456789".
See Also:
BuffRead | BuffWrite | CloseStream | GetStreamLength | PeekStream | Seek | ShiftStream | SRead | StreamEnd | Swrite