Buffer for reading block-generated data.
| 3 | |
| 4 | /// Buffer for reading block-generated data. |
| 5 | pub struct ReadBuffer<BS: BlockSizes> { |
| 6 | /// The first byte of the block is used as cursor position. |
| 7 | /// `&buffer[usize::from(buffer[0])..]` is interpreted as unread bytes. |
| 8 | /// The cursor position is always bigger than zero and smaller than or equal to block size. |
| 9 | buffer: Array<u8, BS>, |
| 10 | } |
| 11 | |
| 12 | impl<BS: BlockSizes> fmt::Debug for ReadBuffer<BS> { |
| 13 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
nothing calls this directly
no outgoing calls
no test coverage detected