(&mut self, ins: CodeUnit)
| 94 | impl OpArgState { |
| 95 | #[inline(always)] |
| 96 | pub fn get(&mut self, ins: CodeUnit) -> (Instruction, OpArg) { |
| 97 | let arg = self.extend(ins.arg); |
| 98 | if !matches!(ins.op, Instruction::ExtendedArg) { |
| 99 | self.reset(); |
| 100 | } |
| 101 | (ins.op, arg) |
| 102 | } |
| 103 | |
| 104 | #[inline(always)] |
| 105 | pub fn extend(&mut self, arg: OpArgByte) -> OpArg { |
no test coverage detected