MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / cur_offset

Method cur_offset

cranelift/codegen/src/machinst/buffer.rs:537–539  ·  view source on GitHub ↗

Current offset from start of buffer.

(&self)

Source from the content-addressed store, hash-verified

535
536 /// Current offset from start of buffer.
537 pub fn cur_offset(&self) -> CodeOffset {
538 self.data.len() as CodeOffset
539 }
540
541 /// Add a byte.
542 pub fn put1(&mut self, value: u8) {

Callers 15

align_toMethod · 0.80
start_patchableMethod · 0.80
end_patchableMethod · 0.80
bind_labelMethod · 0.80
truncate_last_branchMethod · 0.80
optimize_branchesMethod · 0.80
purge_latest_branchesMethod · 0.80
emit_veneerMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by 5

test_islandFunction · 0.64
test_island_backwardFunction · 0.64