servers::proto

Function merge_bytes

source
fn merge_bytes(value: &mut Bytes, buf: &mut Bytes) -> Result<(), DecodeError>
Expand description

Reads a variable-length encoded bytes field from buf and assign it to value.

ยงSafety

Callers must ensure buf outlives value.