MCPcopy Create free account
hub / github.com/eigenform/perfect / push

Method push

perfect/src/asm.rs:428–433  ·  view source on GitHub ↗
(&mut self, byte: u8)

Source from the content-addressed store, hash-verified

426 }
427
428 fn push(&mut self, byte: u8) {
429 if (self.ops.len() + 1) > self.len {
430 panic!("Assembled code would overflow backing allocation");
431 }
432 self.ops.push(byte);
433 }
434
435 fn align(&mut self, alignment: usize, with: u8) {
436 let misalign = self.offset().0 % alignment;

Callers 1

alignMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected