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

Method membytes

cranelift/codegen/meta/src/cdsl/types.rs:57–59  ·  view source on GitHub ↗

Find the number of bytes that this type occupies in memory.

(&self)

Source from the content-addressed store, hash-verified

55
56 /// Find the number of bytes that this type occupies in memory.
57 pub fn membytes(&self) -> u64 {
58 self.width() / 8
59 }
60
61 /// Find the unique number associated with this type.
62 pub fn number(&self) -> u16 {

Callers 2

emit_vectorsFunction · 0.80
emit_dynamic_vectorsFunction · 0.80

Calls 1

widthMethod · 0.45

Tested by

no test coverage detected