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

Method len

cranelift/codegen/src/ir/constant.rs:75–77  ·  view source on GitHub ↗

Return the number of bytes in the constant.

(&self)

Source from the content-addressed store, hash-verified

73impl ConstantData {
74 /// Return the number of bytes in the constant.
75 pub fn len(&self) -> usize {
76 self.0.len()
77 }
78
79 /// Check if the constant contains any bytes.
80 pub fn is_empty(&self) -> bool {

Callers 4

expand_toMethod · 0.45
from_strMethod · 0.45
insertMethod · 0.45
byte_sizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected