mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Functions (first part)
This commit is contained in:
@ -136,6 +136,20 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void resize(std::size_t size)
|
||||
{
|
||||
if (size <= FlatSize)
|
||||
{
|
||||
m_flatBlockItemCount = size;
|
||||
m_variableBlock.clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_flatBlockItemCount = FlatSize;
|
||||
m_variableBlock.resize(size - FlatSize);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
size_t getFlatBlockSize() const { return m_flatBlockItemCount; }
|
||||
|
||||
|
Reference in New Issue
Block a user