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

Method to_bytes

cranelift/codegen/src/isa/x64/inst/args.rs:1115–1122  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1113 }
1114
1115 pub(crate) fn to_bytes(&self) -> u8 {
1116 match self {
1117 Self::Size8 => 1,
1118 Self::Size16 => 2,
1119 Self::Size32 => 4,
1120 Self::Size64 => 8,
1121 }
1122 }
1123
1124 pub(crate) fn to_bits(&self) -> u8 {
1125 self.to_bytes() * 8

Callers 2

pretty_printMethod · 0.45
to_bitsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected