mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 16:24:38 +00:00
Retain is_empty on the public checked byte reader
This commit is contained in:
1 parent
66f8c51048
commit
c93a6057fe
1 file changed
+4
@@ -14,6 +14,10 @@ impl<'a> Reader<'a> {
|
||||
self.data.len()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.data.is_empty()
|
||||
}
|
||||
|
||||
pub fn data(&self) -> &'a [u8] {
|
||||
self.data
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user