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

Method total_size

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

Get the total required size for the code.

(&self)

Source from the content-addressed store, hash-verified

1902
1903 /// Get the total required size for the code.
1904 pub fn total_size(&self) -> CodeOffset {
1905 self.data.len() as CodeOffset
1906 }
1907
1908 /// Return the code in this mach buffer as a hex string for testing purposes.
1909 pub fn stringify_code_bytes(&self) -> String {

Callers 2

code_infoMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by 1