mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-14 06:22:24 +00:00
feat(figcraft-format): expose native member sizes
This commit is contained in:
1 parent
30b1e426e0
commit
644e613b06
1 file changed
+8
@@ -139,6 +139,14 @@ impl<'a> Archive<'a> {
|
||||
self.inner.contains(name)
|
||||
}
|
||||
|
||||
pub fn declared_size(&mut self, name: &str) -> Option<u64> {
|
||||
self.inner.declared_size(name)
|
||||
}
|
||||
|
||||
pub fn compressed_size(&mut self, name: &str) -> Option<u64> {
|
||||
self.inner.compressed_size(name)
|
||||
}
|
||||
|
||||
pub fn read(&mut self, name: &str, max_bytes: u64) -> Result<Option<Vec<u8>>, craft_zip::Error> {
|
||||
self.inner.read(name, max_bytes)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user