Number of blocks in the compressed data.
(data: &[u8])
| 265 | |
| 266 | /// Number of blocks in the compressed data. |
| 267 | pub fn block_count(data: &[u8]) -> Result<usize, CodecError> { |
| 268 | let header = read_header(data)?; |
| 269 | Ok(header.block_count) |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | #[cfg(test)] |
nothing calls this directly
no test coverage detected