Skip to content

Commit 56bb35a

Browse files
committed
fix(cardano-blockchain-types): add size function
Signed-off-by: bkioshn <[email protected]>
1 parent 60960df commit 56bb35a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rust/catalyst-types/src/mmap_file.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ impl MemMapFileStat {
6969
}
7070

7171
impl MemoryMapFile {
72+
/// Get the size of the memory-mapped file.
73+
pub fn size(&self) -> u64 {
74+
self.size
75+
}
76+
7277
/// Get the memory-mapped file as a slice.
7378
pub fn as_slice(&self) -> &[u8] {
7479
self.file.as_slice()

0 commit comments

Comments
 (0)