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

Function nop_is_single_byte

pulley/src/encode.rs:338–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336#[test]
337#[cfg(feature = "std")]
338fn nop_is_single_byte() {
339 // NOP needs to be a single byte so that it can be used to NOP out
340 // an instruction sequence of any length.
341 let inst = crate::op::Nop {};
342 let mut bytes = vec![];
343 inst.encode(&mut bytes);
344 assert_eq!(bytes.len(), 1);
345}

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected