MCPcopy Create free account
hub / github.com/deventlab/d-engine / safe_kv_bytes

Function safe_kv_bytes

d-engine-core/src/utils/convert.rs:23–25  ·  view source on GitHub ↗
(key: u64)

Source from the content-addressed store, hash-verified

21}
22
23pub fn safe_kv_bytes(key: u64) -> Bytes {
24 u64_to_bytes(key)
25}
26
27/// Converts a `u64` to an 8-byte array in big-endian byte order.
28///

Callers 4

generate_insert_commandsFunction · 0.85
generate_delete_commandsFunction · 0.85
generate_insert_commandsFunction · 0.85
execute_commandMethod · 0.85

Calls 1

u64_to_bytesFunction · 0.85

Tested by 2

generate_insert_commandsFunction · 0.68
execute_commandMethod · 0.68