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

Method to_be

cranelift/codegen/src/data_value.rs:136–142  ·  view source on GitHub ↗

Converts `self` to big endian from target's endianness.

(self)

Source from the content-addressed store, hash-verified

134
135 /// Converts `self` to big endian from target's endianness.
136 pub fn to_be(self) -> Self {
137 if cfg!(target_endian = "big") {
138 self
139 } else {
140 self.swap_bytes()
141 }
142 }
143
144 /// Converts `self` to little endian from target's endianness.
145 pub fn to_le(self) -> Self {

Callers 13

write_to_slice_beMethod · 0.80
read_from_slice_beMethod · 0.80
xstore16be_o32Method · 0.80
xstore32be_o32Method · 0.80
xstore64be_o32Method · 0.80
fstore32be_o32Method · 0.80
fstore64be_o32Method · 0.80
xstore16be_zMethod · 0.80
xstore32be_zMethod · 0.80
xstore64be_zMethod · 0.80
fstore32be_zMethod · 0.80
fstore64be_zMethod · 0.80

Calls 1

swap_bytesMethod · 0.45

Tested by

no test coverage detected