This commit is contained in:
Igor Pavlov
2015-06-15 00:00:00 +00:00
committed by Kornel Lesiński
parent 0713a3ab80
commit 54490d51d5
591 changed files with 34932 additions and 16390 deletions

View File

@@ -10,20 +10,16 @@
struct CUniqBlocks
{
CObjectVector<CByteBuffer> Bufs;
CIntVector Sorted;
CIntVector BufIndexToSortedIndex;
CUIntVector Sorted;
CUIntVector BufIndexToSortedIndex;
int AddUniq(const Byte *data, size_t size);
unsigned AddUniq(const Byte *data, size_t size);
UInt64 GetTotalSizeInBytes() const;
void GetReverseMap();
bool IsOnlyEmpty() const
{
if (Bufs.Size() == 0)
return true;
if (Bufs.Size() > 1)
return false;
return Bufs[0].Size() == 0;
return (Bufs.Size() == 0 || Bufs.Size() == 1 && Bufs[0].Size() == 0);
}
};