Module vibe.stream.operations
High level stream manipulation functions.
Functions
Name | Description |
---|---|
pipeRealtime(destination, source, nbytes, max_latency)
|
Pipes a stream to another while keeping the latency within the specified threshold. |
readAll(stream, max_bytes, reserve_bytes)
|
Reads the complete contents of a stream, optionally limited by max_bytes. |
readAllUTF8(stream, sanitize, max_bytes)
|
Reads the complete contents of a stream, assuming UTF-8 encoding. |
readLine(stream, max_bytes, linesep, alloc)
|
Reads and returns a single line from the stream. |
readUntil(stream, end_marker, max_bytes, alloc)
|
Reads all data of a stream until the specified end marker is detected. |
skipBytes(stream, bytes)
|
Consumes bytes bytes of the stream and determines if the contents
match up.
|