34 constexpr size_t minBlockBytes = 16;
35 constexpr size_t minStringBytes = 2;
37 aObjectCount = std::min( aObjectCount, aFileSize / minBlockBytes );
38 aStringCount = std::min( aStringCount, aFileSize / minStringBytes );
48 if( aBlock->GetKey() != 0 )
51 m_Blocks.push_back( std::move( aBlock ) );
void ReserveCapacity(size_t aObjectCount, size_t aStringCount, size_t aFileSize)
Pre-allocate storage for the expected number of objects and strings.
std::unordered_map< uint32_t, wxString > m_StringTable
std::unordered_map< uint32_t, BLOCK_BASE * > m_ObjectKeyMap
std::vector< std::unique_ptr< BLOCK_BASE > > m_Blocks
void InsertBlock(std::unique_ptr< BLOCK_BASE > aBlock)
FMT_VER
The format of an Allegro file.