(row_kinds: &[u8])
| 47 | // --------------------------------------------------------------------------- |
| 48 | |
| 49 | pub fn encode_row_kinds(row_kinds: &[u8]) -> Vec<u8> { |
| 50 | let mut out = Vec::with_capacity(4 + row_kinds.len()); |
| 51 | out.extend_from_slice(&(row_kinds.len() as u32).to_le_bytes()); |
| 52 | out.extend_from_slice(row_kinds); |
| 53 | out |
| 54 | } |
| 55 | |
| 56 | pub fn decode_row_kinds(data: &[u8]) -> ArrayResult<Vec<u8>> { |
| 57 | if data.len() < 4 { |