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