MCPcopy Create free account
hub / github.com/bytecodealliance/WASI-Virt / encode

Method encode

src/data.rs:45–47  ·  view source on GitHub ↗
(&self, bytes: &mut [u8])

Source from the content-addressed store, hash-verified

43 }
44
45 fn encode(&self, bytes: &mut [u8]) {
46 bytes[0..4].copy_from_slice(&self.to_le_bytes());
47 }
48}
49
50impl Data {

Callers 3

finishMethod · 0.45
write_sliceMethod · 0.45
virt_testFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected