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

Function c_u64_to_le_bytes

crates/ffi/src/unsigned.rs:14–16  ·  view source on GitHub ↗
(v: u64)

Source from the content-addressed store, hash-verified

12
13#[unsafe(no_mangle)]
14extern "C" fn c_u64_to_le_bytes(v: u64) -> LeanByteArray<LeanOwned> {
15 LeanByteArray::from_bytes(&v.to_le_bytes())
16}
17
18#[unsafe(no_mangle)]
19extern "C" fn c_usize_to_le_bytes(v: usize) -> LeanByteArray<LeanOwned> {

Callers

nothing calls this directly

Calls 1

from_bytesFunction · 0.85

Tested by

no test coverage detected