summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/package.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-06-08 16:28:08 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-06-08 18:25:31 +0200
commitbb8cc240470638dd85c4e5709df77b4aa4e3deeb (patch)
tree6cbed5391a9b473362aa756e5ebb6b022a42824e /crawl-ref/source/package.h
parent04d7ba450959a100ab5b31c19cc6f7b5341deda3 (diff)
downloadcrawl-ref-bb8cc240470638dd85c4e5709df77b4aa4e3deeb.tar.gz
crawl-ref-bb8cc240470638dd85c4e5709df77b4aa4e3deeb.zip
Show some internal info about saves.
Diffstat (limited to 'crawl-ref/source/package.h')
-rw-r--r--crawl-ref/source/package.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/package.h b/crawl-ref/source/package.h
index 6964a25649..3c8812e713 100644
--- a/crawl-ref/source/package.h
+++ b/crawl-ref/source/package.h
@@ -74,6 +74,12 @@ public:
std::vector<std::string> list_chunks();
void abort();
void unlink();
+
+ // statistics
+ len_t get_slack();
+ len_t get_size() { return file_len; };
+ len_t get_chunk_fragmentation(const std::string name);
+ len_t get_chunk_compressed_length(const std::string name);
private:
std::string filename;
bool rw;
@@ -98,6 +104,7 @@ private:
void read_directory(len_t start, uint8_t version);
void trace_chunk(len_t start);
void load();
+ void load_traces();
friend class chunk_writer;
friend class chunk_reader;
};