From 7eb92c77fbd6fb32c2efbdfc27b4fa4912c82223 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 6 May 2019 15:46:43 -0400 Subject: [PATCH] Change termination byte to u8 It functions like `char`, but Kaitai treats as int under the hood --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1af590b..fd21c9e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,