MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / file_size

Method file_size

crates/fs-utils/src/compression.rs:89–95  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

87 }
88
89 pub fn file_size(&self) -> io::Result<usize> {
90 Ok(match self {
91 Self::None(inner) => inner.get_ref().metadata()?.len() as usize,
92 //TODO: Can't see how to get the file size from ZstdReader
93 Self::Zstd(_inner) => 0,
94 })
95 }
96
97 pub fn compress_type(&self) -> CompressType {
98 match self {

Callers 1

read_entryMethod · 0.80

Calls 5

segment_lenFunction · 0.85
OkFunction · 0.50
lenMethod · 0.45
metadataMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected