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

Method bytes

cranelift/codegen/src/ir/types.rs:312–314  ·  view source on GitHub ↗

Get the number of bytes used to store this type in memory.

(self)

Source from the content-addressed store, hash-verified

310
311 /// Get the number of bytes used to store this type in memory.
312 pub fn bytes(self) -> u32 {
313 (self.bits() + 7) / 8
314 }
315
316 /// Get a SIMD vector type with `n` times more lanes than this one.
317 ///

Callers 15

try_fromMethod · 0.45
intMethod · 0.45
vectorMethod · 0.45
convertMethod · 0.45
stepFunction · 0.45
checked_loadMethod · 0.45
checked_storeMethod · 0.45
match_uimm128Method · 0.45
insert_stack_loadFunction · 0.45
insert_stack_storeFunction · 0.45

Calls 1

bitsMethod · 0.45

Tested by 1

testMethod · 0.36