Change termination byte to u8

It functions like `char`, but Kaitai treats as int under the hood
This commit is contained in:
Bradlee Speice 2019-05-06 15:46:43 -04:00
parent 2b9fe2f3fe
commit 7eb92c77fb

View File

@ -82,7 +82,7 @@ pub trait KStream {
fn read_bytes_full(&self) -> KResult<&[u8]>;
fn read_bytes_term(
&self,
term: char,
term: u8,
include: bool,
consume: bool,
eos_error: bool,
@ -295,7 +295,7 @@ impl<'a> KStream for BytesReader<'a> {
fn read_bytes_term(
&self,
term: char,
term: u8,
include: bool,
consume: bool,
eos_error: bool,