Skip to main content

write_frame

Function write_frame 

Source
pub fn write_frame(
    rpc_type: u8,
    payload: &[u8],
    out: &mut Vec<u8>,
) -> Result<()>
Expand description

Write a framed v3 header + payload into out.

rpc_type is the discriminant byte; payload is the already-serialized body. The current cluster epoch (read from current_local_cluster_epoch) is stamped into the header.