mirror of
https://github.com/bspeice/kaitai_rust
synced 2024-11-21 21:38:09 -05:00
Change termination byte to u8
It functions like `char`, but Kaitai treats as int under the hood
This commit is contained in:
parent
2b9fe2f3fe
commit
7eb92c77fb
@ -82,7 +82,7 @@ pub trait KStream {
|
|||||||
fn read_bytes_full(&self) -> KResult<&[u8]>;
|
fn read_bytes_full(&self) -> KResult<&[u8]>;
|
||||||
fn read_bytes_term(
|
fn read_bytes_term(
|
||||||
&self,
|
&self,
|
||||||
term: char,
|
term: u8,
|
||||||
include: bool,
|
include: bool,
|
||||||
consume: bool,
|
consume: bool,
|
||||||
eos_error: bool,
|
eos_error: bool,
|
||||||
@ -295,7 +295,7 @@ impl<'a> KStream for BytesReader<'a> {
|
|||||||
|
|
||||||
fn read_bytes_term(
|
fn read_bytes_term(
|
||||||
&self,
|
&self,
|
||||||
term: char,
|
term: u8,
|
||||||
include: bool,
|
include: bool,
|
||||||
consume: bool,
|
consume: bool,
|
||||||
eos_error: bool,
|
eos_error: bool,
|
||||||
|
Loading…
Reference in New Issue
Block a user