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

Function c_u16_to_le_bytes

crates/ffi/src/unsigned.rs:4–6  ·  view source on GitHub ↗
(v: u16)

Source from the content-addressed store, hash-verified

2
3#[unsafe(no_mangle)]
4extern "C" fn c_u16_to_le_bytes(v: u16) -> LeanByteArray<LeanOwned> {
5 LeanByteArray::from_bytes(&v.to_le_bytes())
6}
7
8#[unsafe(no_mangle)]
9extern "C" fn c_u32_to_le_bytes(v: u32) -> LeanByteArray<LeanOwned> {

Callers

nothing calls this directly

Calls 1

from_bytesFunction · 0.85

Tested by

no test coverage detected