diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-12-10 22:10:47 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-12-10 22:10:47 +0000 |
commit | 0f6eedb4d9ce5cd4d97e127c601559d7524e7c8e (patch) | |
tree | c88ace4bbd3a92c24822d3fb35e8f555b0694288 /lib/backupstore/BackupStoreFileEncodeStream.h | |
parent | 6bb997504c21c34a5856ba9b7b0483b2516db6a9 (diff) | |
parent | bc2a15eb3dab71425757ec2cb73f56b911c4e400 (diff) |
Merge branch 'appveyor' of github.com:boxbackup/boxbackup into appveyor
Diffstat (limited to 'lib/backupstore/BackupStoreFileEncodeStream.h')
-rw-r--r-- | lib/backupstore/BackupStoreFileEncodeStream.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/backupstore/BackupStoreFileEncodeStream.h b/lib/backupstore/BackupStoreFileEncodeStream.h index 6db09182..5b9b4a61 100644 --- a/lib/backupstore/BackupStoreFileEncodeStream.h +++ b/lib/backupstore/BackupStoreFileEncodeStream.h @@ -90,6 +90,9 @@ public: int64_t GetBytesToUpload() { return mBytesToUpload; } int64_t GetTotalBytesSent() { return mTotalBytesSent; } + static void CalculateBlockSizes(int64_t DataSize, int64_t &rNumBlocksOut, + int32_t &rBlockSizeOut, int32_t &rLastBlockSizeOut); + private: enum { @@ -98,15 +101,12 @@ private: Status_BlockListing = 2, Status_Finished = 3 }; - -private: + void EncodeCurrentBlock(); - void CalculateBlockSizes(int64_t DataSize, int64_t &rNumBlocksOut, int32_t &rBlockSizeOut, int32_t &rLastBlockSizeOut); void SkipPreviousBlocksInInstruction(); void SetForInstruction(); void StoreBlockIndexEntry(int64_t WncSizeOrBlkIndex, int32_t ClearSize, uint32_t WeakChecksum, uint8_t *pStrongChecksum); -private: Recipe *mpRecipe; IOStream *mpFile; // source file CollectInBufferStream mData; // buffer for header and index entries |