41 aObjectCount = std::min( aObjectCount,
static_cast<size_t>( 1e6 ) );
42 aStringCount = std::min( aStringCount,
static_cast<size_t>( 1e6 ) );
52 if( aBlock->GetKey() != 0 )
55 m_Blocks.push_back( std::move( aBlock ) );
static void collectSentinelKeys(const FILE_HEADER &aHeader, BRD_DB &aDb)
An Allegro board database representing the contents of a .brd (and presumably .dra) file.
std::unordered_map< uint32_t, wxString > m_StringTable
std::unordered_map< uint32_t, BLOCK_BASE * > m_ObjectKeyMap
std::unique_ptr< FILE_HEADER > m_Header
std::vector< std::unique_ptr< BLOCK_BASE > > m_Blocks
void ReserveCapacity(size_t aObjectCount, size_t aStringCount)
Pre-allocate storage for the expected number of objects and strings.
bool ResolveAndValidate()
Populate sentinel keys from the file header linked lists.
void InsertBlock(std::unique_ptr< BLOCK_BASE > aBlock)
void AddSentinelKey(uint32_t aKey)
FMT_VER
The format of an Allegro file.