forked from organicmaps/organicmaps
BlobStorage: even more code review fixes :)
This commit is contained in:
parent
1aabac1393
commit
f5b0a6b756
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ void BlobStorage::GetBlob(uint32_t i, string & blob) const
|
|||
uint32_t const chunkEnd = m_chunkOffset[chunk];
|
||||
vector<char> compressedData(chunkEnd - chunkBeg);
|
||||
ASSERT_GREATER(compressedData.size(), 4, ());
|
||||
m_pReader->Read(START_OFFSET + chunkBeg, &compressedData[0], compressedData.size());
|
||||
m_pReader->Read(HEADER_SIZE + chunkBeg, &compressedData[0], compressedData.size());
|
||||
uint32_t const decompressedSize = ReadPrimitiveFromPos<uint32_t>(
|
||||
MemReader(&compressedData[0], compressedData.size()), compressedData.size() - 4);
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ private:
|
|||
uint32_t GetOffsetFromBI(uint32_t blobInfo) const;
|
||||
|
||||
uint32_t m_bitsInChunkSize;
|
||||
static uint32_t const START_OFFSET = 4;
|
||||
static uint32_t const HEADER_SIZE = 4;
|
||||
|
||||
scoped_ptr<Reader const> m_pReader;
|
||||
DecompressorType m_decompressor;
|
||||
|
|
Loading…
Add table
Reference in a new issue