(&mut self, byte: u8)
| 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; |