Decode a `Vec ` from MessagePack bytes produced by [`encode_op_batch`].
(bytes: &[u8])
| 32 | /// Decode a `Vec<ArrayOp>` from MessagePack bytes produced by |
| 33 | /// [`encode_op_batch`]. |
| 34 | pub fn decode_op_batch(bytes: &[u8]) -> ArrayResult<Vec<ArrayOp>> { |
| 35 | zerompk::from_msgpack(bytes).map_err(|e| ArrayError::SegmentCorruption { |
| 36 | detail: format!("decode_op_batch: {e}"), |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | #[cfg(test)] |
| 41 | mod tests { |
no outgoing calls