MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / write_byte

Method write_byte

aiscript-vm/src/chunk.rs:197–200  ·  view source on GitHub ↗
(&mut self, byte: OpCode, line: u32)

Source from the content-addressed store, hash-verified

195 }
196
197 pub fn write_byte(&mut self, byte: OpCode, line: u32) {
198 self.code.push(byte);
199 self.lines.push(line);
200 }
201
202 pub fn add_constant(&mut self, value: Value<'gc>) -> usize {
203 self.constans.push(value);

Callers 2

write_codeMethod · 0.80
emitMethod · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected