[−][src]Struct kerbalobjects::KOFileWriter
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
impl RefUnwindSafe for KOFileWriter
impl Send for KOFileWriter
impl Sync for KOFileWriter
impl Unpin for KOFileWriter
impl UnwindSafe for KOFileWriter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,