pub struct BinaryWriterVE<W> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<W: Write> BinaryWrite for BinaryWriterVE<W>
impl<W: Write> BinaryWrite for BinaryWriterVE<W>
Source§fn write_cstr(&mut self, value: &str) -> Result<()>
fn write_cstr(&mut self, value: &str) -> Result<()>
Writes a str as c-string (null-terminated) to the internal stream.
Source§fn write_str(&mut self, value: &str, write_len: Option<bool>) -> Result<()>
fn write_str(&mut self, value: &str, write_len: Option<bool>) -> Result<()>
Writes a str to the internal stream. If
write_len
is Some(true)
, the length of the string will be written before the string itself.Source§fn write_bytes(&mut self, value: &[u8], write_len: Option<bool>) -> Result<()>
fn write_bytes(&mut self, value: &[u8], write_len: Option<bool>) -> Result<()>
Writes a byte slice to the internal stream. If
write_len
is Some(true)
, the length of the byte slice will be written before the byte slice itself.Source§fn write_bool_array(
&mut self,
value: Vec<bool>,
write_len: Option<bool>,
) -> Result<()>
fn write_bool_array( &mut self, value: Vec<bool>, write_len: Option<bool>, ) -> Result<()>
Writes a bool array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_char_array(
&mut self,
value: Vec<char>,
write_len: Option<bool>,
) -> Result<()>
fn write_char_array( &mut self, value: Vec<char>, write_len: Option<bool>, ) -> Result<()>
Writes a char array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_f16_array(
&mut self,
value: Vec<f32>,
write_len: Option<bool>,
) -> Result<()>
fn write_f16_array( &mut self, value: Vec<f32>, write_len: Option<bool>, ) -> Result<()>
Writes a f16 array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_cstr_array(
&mut self,
value: Vec<&str>,
write_len: Option<bool>,
) -> Result<()>
fn write_cstr_array( &mut self, value: Vec<&str>, write_len: Option<bool>, ) -> Result<()>
Writes a str array as c-strings (null-terminated) to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_str_array(
&mut self,
value: Vec<&str>,
write_len: Option<bool>,
) -> Result<()>
fn write_str_array( &mut self, value: Vec<&str>, write_len: Option<bool>, ) -> Result<()>
Writes a str array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_bytes_array(
&mut self,
value: Vec<&[u8]>,
write_len: Option<bool>,
) -> Result<()>
fn write_bytes_array( &mut self, value: Vec<&[u8]>, write_len: Option<bool>, ) -> Result<()>
Writes a byte slice array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_u8_array(
&mut self,
value: Vec<u8>,
write_len: Option<bool>,
) -> Result<()>
fn write_u8_array( &mut self, value: Vec<u8>, write_len: Option<bool>, ) -> Result<()>
Writes a u8 array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_u16_array(
&mut self,
value: Vec<u16>,
write_len: Option<bool>,
) -> Result<()>
fn write_u16_array( &mut self, value: Vec<u16>, write_len: Option<bool>, ) -> Result<()>
Writes a u16 array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_u32_array(
&mut self,
value: Vec<u32>,
write_len: Option<bool>,
) -> Result<()>
fn write_u32_array( &mut self, value: Vec<u32>, write_len: Option<bool>, ) -> Result<()>
Writes a u32 array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_u64_array(
&mut self,
value: Vec<u64>,
write_len: Option<bool>,
) -> Result<()>
fn write_u64_array( &mut self, value: Vec<u64>, write_len: Option<bool>, ) -> Result<()>
Writes a u64 array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_i8_array(
&mut self,
value: Vec<i8>,
write_len: Option<bool>,
) -> Result<()>
fn write_i8_array( &mut self, value: Vec<i8>, write_len: Option<bool>, ) -> Result<()>
Writes a i8 array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_i16_array(
&mut self,
value: Vec<i16>,
write_len: Option<bool>,
) -> Result<()>
fn write_i16_array( &mut self, value: Vec<i16>, write_len: Option<bool>, ) -> Result<()>
Writes a i16 array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_i32_array(
&mut self,
value: Vec<i32>,
write_len: Option<bool>,
) -> Result<()>
fn write_i32_array( &mut self, value: Vec<i32>, write_len: Option<bool>, ) -> Result<()>
Writes a i32 array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§fn write_i64_array(
&mut self,
value: Vec<i64>,
write_len: Option<bool>,
) -> Result<()>
fn write_i64_array( &mut self, value: Vec<i64>, write_len: Option<bool>, ) -> Result<()>
Writes a i64 array to the internal stream. If
write_len
is Some(true)
, the length of the array will be written before the array itself.Source§impl<R: Seek> Seek for BinaryWriterVE<R>
impl<R: Seek> Seek for BinaryWriterVE<R>
Source§fn seek(&mut self, pos: SeekFrom) -> Result<u64>
fn seek(&mut self, pos: SeekFrom) -> Result<u64>
Seek to an offset, in bytes, in a stream. Read more
Source§fn stream_position(&mut self) -> Result<u64>
fn stream_position(&mut self) -> Result<u64>
Returns the current seek position from the start of the stream. Read more
1.55.0 · Source§fn rewind(&mut self) -> Result<(), Error>
fn rewind(&mut self) -> Result<(), Error>
Rewind to the beginning of a stream. Read more
Auto Trait Implementations§
impl<W> Freeze for BinaryWriterVE<W>where
W: Freeze,
impl<W> RefUnwindSafe for BinaryWriterVE<W>where
W: RefUnwindSafe,
impl<W> Send for BinaryWriterVE<W>where
W: Send,
impl<W> Sync for BinaryWriterVE<W>where
W: Sync,
impl<W> Unpin for BinaryWriterVE<W>where
W: Unpin,
impl<W> UnwindSafe for BinaryWriterVE<W>where
W: UnwindSafe,
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