Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_format
Function · 0.45
truncate_reclaims_space
Function · 0.45
partition_local_remote
Function · 0.45
make_partial
Function · 0.45
store_wasm_binary
Function · 0.45
load_wasm_binary
Function · 0.45
delete_wasm_binary
Function · 0.45
replace_identifier
Function · 0.45
tokenize
Function · 0.45
read_string_literal
Function · 0.45
peek_two_word_keyword
Function · 0.45
replace_qualified_field_reference
Function · 0.45
Calls
no outgoing calls
Tested by
15
build_date_env_format
Function · 0.36
truncate_reclaims_space
Function · 0.36
assign_persists_hwm_at_flush_threshold
Function · 0.36
rs256_roundtrip
Function · 0.36
rs256_wrong_key_rejected
Function · 0.36
vshard_from_key_distributes
Function · 0.36
json_passthrough
Function · 0.36
empty_prefilter_returns_nothing
Function · 0.36
write_amp_tracking
Function · 0.36
write_amp_ratio
Function · 0.36
incremental_rehash
Function · 0.36
generate_self_signed_cert
Function · 0.36