mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-07 21:38:58 +08:00
BGI parser use ReaderExt and Peek
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user