BGI parser use ReaderExt and Peek

This commit is contained in:
2025-06-07 13:48:57 +08:00
parent 04b2e63b4f
commit 4fcb4a4d24
3 changed files with 51 additions and 135 deletions

View File

@@ -524,13 +524,13 @@ impl<T: Write> WriteExt for T {
}
pub struct MemReader {
data: Vec<u8>,
pos: usize,
pub data: Vec<u8>,
pub pos: usize,
}
pub struct MemReaderRef<'a> {
data: &'a [u8],
pos: usize,
pub data: &'a [u8],
pub pos: usize,
}
impl std::fmt::Debug for MemReader {