[][src]Struct kerbalobjects::KOFileWriter

pub struct KOFileWriter { /* fields omitted */ }

Implementations

impl KOFileWriter[src]

pub fn new(filename: &str) -> KOFileWriter[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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.