Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_to
Method · 0.80
start_patchable
Method · 0.80
end_patchable
Method · 0.80
bind_label
Method · 0.80
lazily_clear_labels_at_tail
Method · 0.80
truncate_last_branch
Method · 0.80
optimize_branches
Method · 0.80
purge_latest_branches
Method · 0.80
worst_case_end_of_island
Method · 0.80
emit_island_maybe_forced
Method · 0.80
emit_veneer
Method · 0.80
add_patchable_call_site
Method · 0.80
Calls
1
len
Method · 0.45
Tested by
5
test_island
Function · 0.64
test_island_backward
Function · 0.64
test_many_constants_in_one_block
Function · 0.64
test_short_branch_amid_constants
Function · 0.64
test_mid_block_island_via_gen_jump
Function · 0.64