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

Interface WasmEncode

src/data.rs:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27pub(crate) trait WasmEncode
28where
29 Self: Sized,
30{
31 fn align() -> usize;
32 fn size() -> usize;
33 fn encode(&self, bytes: &mut [u8]);
34}
35
36impl WasmEncode for u32 {
37 fn align() -> usize {

Callers

nothing calls this directly

Implementers 2

virt_io.rssrc/virt_io.rs
data.rssrc/data.rs

Calls

no outgoing calls

Tested by

no test coverage detected