Skip to content

Commit 8cc449d

Browse files
committed
accessors
1 parent 73e3c29 commit 8cc449d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/archive/file_entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
55
use crate::io::FromReader;
66

77
#[derive(Debug, Clone, Copy)]
8-
pub(crate) struct FileEntry {
8+
pub struct FileEntry {
99
name_hash_64: u64,
1010
timestamp: u64, //SystemTime,
1111
num_inline_buffer_segments: u32,

src/archive/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,12 +859,12 @@ impl<W: Write + Seek> ZipArchive<W> {
859859
#[derive(Debug, Clone)]
860860
pub struct ZipEntry {
861861
/// FNV1a64 hash of the entry name
862-
hash: u64,
862+
pub hash: u64,
863863
/// Resolved resource path of that entry, this may not be available
864864
name: Option<String>,
865865

866866
/// wrapped internal struct
867-
entry: FileEntry,
867+
pub entry: FileEntry,
868868
segment: FileSegment,
869869
buffers: Vec<FileSegment>,
870870
}

0 commit comments

Comments
 (0)