pub struct SonetWriteBuf { /* private fields */ }Expand description
Writable Buf
Implementations§
Source§impl SonetWriteBuf
Writable Buf Implementation
impl SonetWriteBuf
Writable Buf Implementation
Sourcepub fn readable(&mut self) -> SonetReadBuf
pub fn readable(&mut self) -> SonetReadBuf
Convert to SonetReadBuf
Sourcepub fn write_byte(&mut self, data: u8)
pub fn write_byte(&mut self, data: u8)
Write byte or u8
Sourcepub fn write_short(&mut self, data: u16)
pub fn write_short(&mut self, data: u16)
Write short or u16
Sourcepub fn write_long(&mut self, data: u64)
pub fn write_long(&mut self, data: u64)
Write long or u64
Sourcepub fn write_bool(&mut self, data: bool)
pub fn write_bool(&mut self, data: bool)
Write 0 if false, 1 if true
Sourcepub fn write_byte_array(&mut self, data: &Vec<u8>)
pub fn write_byte_array(&mut self, data: &Vec<u8>)
Write byte_array or vec
Sourcepub fn write_short_array(&mut self, data: &Vec<u16>)
pub fn write_short_array(&mut self, data: &Vec<u16>)
Write short_array or vec
Sourcepub fn write_int_array(&mut self, data: &Vec<u32>)
pub fn write_int_array(&mut self, data: &Vec<u32>)
Write int_array or vec
Sourcepub fn write_long_array(&mut self, data: &Vec<u64>)
pub fn write_long_array(&mut self, data: &Vec<u64>)
Write long_array or vec
Sourcepub fn write_float(&mut self, data: f32)
pub fn write_float(&mut self, data: f32)
Write float or f32
Sourcepub fn write_double(&mut self, data: f64)
pub fn write_double(&mut self, data: f64)
Write double or f64
Sourcepub fn write_float_array(&mut self, data: &Vec<f32>)
pub fn write_float_array(&mut self, data: &Vec<f32>)
Write float_array or vec
Sourcepub fn write_double_array(&mut self, data: &Vec<f64>)
pub fn write_double_array(&mut self, data: &Vec<f64>)
Write double_array or vec
Sourcepub fn write_char(&mut self, data: char)
pub fn write_char(&mut self, data: char)
Write char
Sourcepub fn write_string(&mut self, data: &String)
pub fn write_string(&mut self, data: &String)
Write String
Auto Trait Implementations§
impl Freeze for SonetWriteBuf
impl RefUnwindSafe for SonetWriteBuf
impl Send for SonetWriteBuf
impl Sync for SonetWriteBuf
impl Unpin for SonetWriteBuf
impl UnwindSafe for SonetWriteBuf
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