MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / encode

Function encode

crates/sats/src/hex.rs:14–17  ·  view source on GitHub ↗
(bytes: &[u8; N])

Source from the content-addressed store, hash-verified

12}
13
14pub fn encode<const N: usize>(bytes: &[u8; N]) -> HexString<N> {
15 let s = bytes.map(HexByte::from_byte);
16 HexString { s }
17}
18
19impl<const N: usize> HexString<N> {
20 #[inline(always)]

Callers 12

file_pathMethod · 0.85
signMethod · 0.85
to_hexMethod · 0.85
to_abbreviated_hexMethod · 0.85
to_hexMethod · 0.85
to_abbreviated_hexMethod · 0.85
signMethod · 0.85
maybe_spawn_encodeFunction · 0.85
time_encodeFunction · 0.85
to_hexMethod · 0.85
serialize_bytesMethod · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…