pub trait WritableBuffer {
// Required methods
fn allocate_more(&mut self, amount: usize);
fn write(&mut self, val: u8);
fn write_bytes(&mut self, val: &[u8]);
}Expand description
Allows a type to allow a Kerbal Machine Code or Kerbal Object file to be written into it
Required Methods§
Sourcefn allocate_more(&mut self, amount: usize)
fn allocate_more(&mut self, amount: usize)
Notifies this buffer that if it can, it should resize by the additional amount specified
Sourcefn write_bytes(&mut self, val: &[u8])
fn write_bytes(&mut self, val: &[u8])
Writes a byte slice to this buffer