MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / as_bytes

Method as_bytes

nodedb/src/bridge/envelope.rs:30–34  ·  view source on GitHub ↗

Get the payload bytes.

(&self)

Source from the content-addressed store, hash-verified

28
29 /// Get the payload bytes.
30 pub fn as_bytes(&self) -> &[u8] {
31 match self {
32 Self::Heap(a) => a,
33 }
34 }
35
36 /// Whether this payload is empty.
37 pub fn is_empty(&self) -> bool {

Callers 15

build_date_env_formatFunction · 0.45
truncate_reclaims_spaceFunction · 0.45
partition_local_remoteFunction · 0.45
make_partialFunction · 0.45
store_wasm_binaryFunction · 0.45
load_wasm_binaryFunction · 0.45
delete_wasm_binaryFunction · 0.45
replace_identifierFunction · 0.45
tokenizeFunction · 0.45
read_string_literalFunction · 0.45
peek_two_word_keywordFunction · 0.45

Calls

no outgoing calls

Tested by 15

build_date_env_formatFunction · 0.36
truncate_reclaims_spaceFunction · 0.36
rs256_roundtripFunction · 0.36
rs256_wrong_key_rejectedFunction · 0.36
json_passthroughFunction · 0.36
write_amp_trackingFunction · 0.36
write_amp_ratioFunction · 0.36
incremental_rehashFunction · 0.36