NovelIO


MemoryBuffer

Namespace: NovelFS.NovelIO

Operations on memory buffers

Functions and values

Function or valueDescription
bufferToBinaryChannel buffer
Signature: buffer:MemBuffer -> IO<BChannel>

Create a binary channel from a memory buffer

bufferToTextChannel buffer
Signature: buffer:MemBuffer -> IO<TChannel>

Create a channel from a memory buffer

createExpandable ()
Signature: unit -> MemBuffer

Creates an expandable memory buffer with zero initial size

createFromByteArray arr
Signature: arr:byte array -> MemBuffer

Creates a non-expandable memory buffer from the supplied byte array

Fork me on GitHub