18 ::ll::TypedStorage<8, 8, uint64> mTotalSize;
19 ::ll::TypedStorage<4, 4, uint> mChunkSize;
20 ::ll::TypedStorage<8, 8, uint64> mTotalNbChunks;
21 ::ll::TypedStorage<8, 8, uint64> mRequestedChunks;
22 ::ll::TypedStorage<8, 8, uint64> mReceivedChunks;
23 ::ll::TypedStorage<8, 8, uint64> mWrittenChunks;
24 ::ll::TypedStorage<8, 24, ::std::vector<::FileChunkInfo>> mChunkInfo;
25 ::ll::TypedStorage<8, 24, ::MovePriorityQueue<::FileChunk, ::std::less<::FileChunk>>> mChunkQueue;
36 MCNAPI
bool canWriteChunk()
const;
38 MCNAPI ::FileChunk dequeueChunk();
40 MCNAPI
int getAndIncrementNextChunk();
45 MCNAPI ::std::vector<::FileChunkInfo>
const&
getChunks()
const;
48 MCNAPI uint64 getDownloadedBytes()
const;
50 MCNAPI
float getProgress()
const;
56 MCNAPI
void queueReceivedChunk(
::FileChunk&& chunk);
58 MCNAPI
bool requestedAllChunks()
const;
63 MCNAPI
void reset(uint64 totalSize, uint chunkSize);
66 MCNAPI
bool writtenAllChunks()
const;