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

Function encode_vshard_envelope

nodedb-cluster/src/rpc_codec/vshard.rs:15–17  ·  view source on GitHub ↗
(bytes: &[u8], out: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

13use crate::error::Result;
14
15pub(super) fn encode_vshard_envelope(bytes: &[u8], out: &mut Vec<u8>) -> Result<()> {
16 write_frame(RPC_VSHARD_ENVELOPE, bytes, out)
17}
18
19pub(super) fn decode_vshard_envelope(payload: &[u8]) -> Result<RaftRpc> {
20 // VShardEnvelope is already in its own binary format — pass through raw.

Callers 1

encodeFunction · 0.85

Calls 1

write_frameFunction · 0.70

Tested by

no test coverage detected