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

Method decode

pulley/src/decode.rs:266–271  ·  view source on GitHub ↗
(bytecode: &mut T)

Source from the content-addressed store, hash-verified

264
265impl Decode for u8 {
266 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
267 where
268 T: BytecodeStream,
269 {
270 bytecode.read::<1>().map(|a| a[0])
271 }
272}
273
274impl Decode for u16 {

Callers

nothing calls this directly

Calls 9

OkFunction · 0.85
decodeFunction · 0.85
fromFunction · 0.85
invalid_regMethod · 0.80
invalid_opcodeMethod · 0.80
newFunction · 0.50
mapMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected