(chunk: &[u8], out: &mut Vec<u8>)
| 51 | } |
| 52 | |
| 53 | fn write_framed(chunk: &[u8], out: &mut Vec<u8>) { |
| 54 | out.extend_from_slice(&(chunk.len() as u32).to_le_bytes()); |
| 55 | out.extend_from_slice(chunk); |
| 56 | } |
| 57 | |
| 58 | /// Encode a `SparseTile` into `out`. The segment writer wraps this payload |
| 59 | /// in BlockFraming (length + CRC). |
no test coverage detected