Struct stream_inmemory::Stream [−][src]
pub struct Stream { /* fields omitted */ }
Expand description
Dynamically sized inmemory stream.
Used as buffer with read, write and peek funcs.
Implementations
Create new Stream with target capacity.
Clear bytes that have been read. Has no effect on the allocated capacity.
Truncate the capacity of the stream as much as possible.
Trait Implementations
Peek one byte from stream, position don’t shift.
Can return EOF error.
Peek bytes from stream, position don’t shift.
Can return EOF, ZeroLength errors.
Read one byte from stream, position shifted.
Can return EOF error.
Read bytes from stream, position shifted.
Can return EOF, ZeroLength errors.
Skip “count” bytes in stream. Return skipped bytes count.
Auto Trait Implementations
impl RefUnwindSafe for Stream
impl UnwindSafe for Stream