Chunks `bytes` into an iterator where each element fits into a granule.
(bytes: &[u8])
| 281 | |
| 282 | /// Chunks `bytes` into an iterator where each element fits into a granule. |
| 283 | pub fn chunks(bytes: &[u8]) -> impl DoubleEndedIterator<Item = &[u8]> { |
| 284 | bytes.chunks(Self::DATA_SIZE) |
| 285 | } |
| 286 | |
| 287 | /// Returns the data from the var-len object in this granule. |
| 288 | pub fn data(&self) -> &[u8] { |
no outgoing calls