Provides io.Reader
, io.Writer
, and io.SeekableStream
for in-memory buffers as well as files. For memory sources, if the supplied byte buffer is const, then io.Writer
is not available. The error set of the stream functions is the error set of the corresponding file functions.
Fields
buffer: field_call,
The stream access is redirected to this buffer.
const_buffer: field_call,
The stream access is redirected to this buffer. Writing to the source will always yield error.AccessDenied
.
file: if (has_file) std.fs.File else void,
The stream access is redirected to this file. On freestanding, this must never be initialized!
Values
GetSeekPosError | type | |
ReadError | type | |
Reader | undefined | |
SeekError | type | |
SeekableStream | undefined | |
WriteError | type | |
Writer | undefined |