MCPcopy Create free account
hub / github.com/argumentcomputer/ix / c_u32_to_le_bytes

Function c_u32_to_le_bytes

crates/ffi/src/unsigned.rs:9–11  ·  view source on GitHub ↗
(v: u32)

Source from the content-addressed store, hash-verified

7
8#[unsafe(no_mangle)]
9extern "C" fn c_u32_to_le_bytes(v: u32) -> LeanByteArray<LeanOwned> {
10 LeanByteArray::from_bytes(&v.to_le_bytes())
11}
12
13#[unsafe(no_mangle)]
14extern "C" fn c_u64_to_le_bytes(v: u64) -> LeanByteArray<LeanOwned> {

Callers

nothing calls this directly

Calls 1

from_bytesFunction · 0.85

Tested by

no test coverage detected