Function encode_frames
pub fn encode_frames(ops: &SessionOps, out: &mut Vec<u8>)Available on crate feature
alloc only.Expand description
Encodes ops as a single CRC frame, appending it to out.
This is the write-side counterpart of
JournalReader: the bytes it produces replay
through the reader to reapply every op. The whole batch becomes one frame;
the header’s 8-byte length field can address any in-memory batch, so there
is no size limit to split around.
Appends nothing if ops is empty.