Struct klinker::KSMFileWriter [−][src]
pub struct KSMFileWriter { /* fields omitted */ }
Implementations
impl KSMFileWriter
[src]
impl KSMFileWriter
[src]pub fn new(filename: &str) -> KSMFileWriter
[src]
pub fn write_to_file(&mut self) -> Result<(), Box<dyn Error>>
[src]
pub fn get_current_index(&self) -> usize
[src]
Returns the current index of the reader into the byte vector
pub fn write(&mut self, byte: u8) -> Result<(), Box<dyn Error>>
[src]
pub fn write_multiple(&mut self, bytes: &Vec<u8>) -> Result<(), Box<dyn Error>>
[src]
pub fn write_boolean(&mut self, b: bool) -> Result<(), Box<dyn Error>>
[src]
pub fn write_byte(&mut self, b: i8) -> Result<(), Box<dyn Error>>
[src]
pub fn write_int16(&mut self, i: i16) -> Result<(), Box<dyn Error>>
[src]
pub fn write_uint16(&mut self, i: u16) -> Result<(), Box<dyn Error>>
[src]
pub fn write_int32(&mut self, i: i32) -> Result<(), Box<dyn Error>>
[src]
pub fn write_uint32(&mut self, i: u32) -> Result<(), Box<dyn Error>>
[src]
pub fn write_float(&mut self, f: f32) -> Result<(), Box<dyn Error>>
[src]
pub fn write_double(&mut self, d: f64) -> Result<(), Box<dyn Error>>
[src]
pub fn write_kos_string(&mut self, s: &str) -> Result<(), Box<dyn Error>>
[src]
pub fn write_string(&mut self, s: &str) -> Result<(), Box<dyn Error>>
[src]
Writes a NULL-TERMINATED string to the output buffer
pub fn write_variable(
&mut self,
number_bytes: u8,
value: u32
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
number_bytes: u8,
value: u32
) -> Result<(), Box<dyn Error>>
Auto Trait Implementations
impl RefUnwindSafe for KSMFileWriter
impl RefUnwindSafe for KSMFileWriter
impl Send for KSMFileWriter
impl Send for KSMFileWriter
impl Sync for KSMFileWriter
impl Sync for KSMFileWriter
impl Unpin for KSMFileWriter
impl Unpin for KSMFileWriter
impl UnwindSafe for KSMFileWriter
impl UnwindSafe for KSMFileWriter