Creates a new instance of a pipe
an optional buffer to start with
an optional amount of bytes to use for the length.
The actual buffer containing the bytes.
The reading view. It's a sliding window as we read and write, pointing to the buffer.
Whether or not there is more data to read from the buffer
Allocate a fixed amount of memory in the buffer. This does not affect the view.
A number of bytes to add to the buffer.
Read num
number of bytes from the front of the pipe.
The number of bytes to read.
Write a buffer to the end of the pipe.
The bytes to write.
Generated using TypeDoc
A class that abstracts a pipe-like ArrayBuffer.