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

Method is_empty

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

Check if the constant contains any bytes.

(&self)

Source from the content-addressed store, hash-verified

78
79 /// Check if the constant contains any bytes.
80 pub fn is_empty(&self) -> bool {
81 self.0.is_empty()
82 }
83
84 /// Return the data as a slice.
85 pub fn as_slice(&self) -> &[u8] {

Callers 15

get_arbitraryMethod · 0.45
shuffleMethod · 0.45
mainFunction · 0.45
push_endMethod · 0.45
reserveMethod · 0.45
inline_oneFunction · 0.45
decorate_blockFunction · 0.45
write_operandsFunction · 0.45
write_debug_tagsFunction · 0.45
fmt_blockMethod · 0.45
verifyMethod · 0.45
optimize_branchesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected