pub struct MemoryStream8 { /* private fields */ }
Expand description
Memory-based stream (u8-based)
Implementations§
Source§impl MemoryStream8
impl MemoryStream8
Trait Implementations§
Source§impl Stream for MemoryStream8
impl Stream for MemoryStream8
Source§fn close(&mut self) -> Option<stream_result_t>
fn close(&mut self) -> Option<stream_result_t>
This function is called before closing the stream. It returns
the current stream counters, or None if the stream may not be closed. Read more
Source§fn get_rock(&self) -> u32
fn get_rock(&self) -> u32
Gets the rock for the stream. This is an arbitrary u32 that
was provided on creation. Read more
Source§fn set_position(&mut self, pos: i32, mode: seekmode)
fn set_position(&mut self, pos: i32, mode: seekmode)
Set current position for reading/writing in the stream. Read more
Source§fn get_position(&mut self) -> u32
fn get_position(&mut self) -> u32
Get current position for reading/writing in the stream. Read more
Source§fn put_buffer(&mut self, buf: &[u8]) -> strid_t
fn put_buffer(&mut self, buf: &[u8]) -> strid_t
Write to the stream. Optionally returns a stream id to mirror to. Read more
Source§fn put_buffer_uni(&mut self, buf: &[u32]) -> strid_t
fn put_buffer_uni(&mut self, buf: &[u32]) -> strid_t
Write unicode code points to the stream. Optionally returns a stream id to mirror to. Read more
Source§fn set_style(&mut self, _styl: Style) -> strid_t
fn set_style(&mut self, _styl: Style) -> strid_t
Set current style. Streams that don’t have a concept of style can
simply ignore this. Optionally returns a stream id to mirror to. Read more
Source§fn get_buffer_uni(&mut self, buf: &mut [u32]) -> u32
fn get_buffer_uni(&mut self, buf: &mut [u32]) -> u32
Read unicode code points from the stream. Read more
Source§fn set_di_rock(&mut self, girock: rock)
fn set_di_rock(&mut self, girock: rock)
Set dispatch rock. This is an arbitrary value stored by the Glk client in the stream
object. Read more
Source§fn get_di_rock(&self) -> rock
fn get_di_rock(&self) -> rock
Get dispatch rock. Read more
Auto Trait Implementations§
impl Freeze for MemoryStream8
impl RefUnwindSafe for MemoryStream8
impl !Send for MemoryStream8
impl !Sync for MemoryStream8
impl Unpin for MemoryStream8
impl UnwindSafe for MemoryStream8
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more