top | up | prev | next

ExtendedCharacterInfoHeader Class

Definition at line 1017 of Unicode.hpp

Member Functions

void AllocatePages(int numExtendedPages)
uint32_t GetPageStart(int pageIndex) const
void Read(BinaryReader& reader)
void SetPageStart(int pageIndex, uint32_t extendedPageStart)
void Write(BinaryWriter& writer)

Member Variables

std::vector<uint32_t> extendedPageStarts

Member Function Details

AllocatePages Member Function

void soulng::unicode::ExtendedCharacterInfoHeader::AllocatePages(int numExtendedPages)

Definition at line 1990 of Unicode.cpp :
1991 {
1992     extendedPageStarts.resize(numExtendedPages);
1993 }


Declaration at line 1020 of Unicode.hpp

Called by: soulng::unicode::CharacterTable::Write


GetPageStart Member Function

uint32_t soulng::unicode::ExtendedCharacterInfoHeader::GetPageStart(int pageIndex) const

Definition at line 2015 of Unicode.cpp :
2016 {
2017     if (pageIndex < 0 || pageIndex >= extendedPageStarts.size())
2018     {
2019         throw UnicodeException("invalid extended page index" + std::to_string(pageIndex));
2020     }
2021     return extendedPageStarts[pageIndex];
2022 }


Declaration at line 1023 of Unicode.hpp

Called by: soulng::unicode::CharacterTable::GetExtendedCharacterInfo


Read Member Function

void soulng::unicode::ExtendedCharacterInfoHeader::Read(BinaryReader& reader)

Definition at line 2005 of Unicode.cpp :
2006 {
2007     uint32_t n = reader.ReadUInt();
2008     for (uint32_t i = 0; i < n; ++i)
2009     {
2010         uint32_t start = reader.ReadUInt();
2011         extendedPageStarts.push_back(start);
2012     }
2013 }


Called by: soulng::unicode::CharacterTable::ReadExtendedHeader


SetPageStart Member Function

void soulng::unicode::ExtendedCharacterInfoHeader::SetPageStart(int pageIndex, uint32_t extendedPageStart)

Definition at line 2024 of Unicode.cpp :
2025 {
2026     if (pageIndex < 0 || pageIndex >= extendedPageStarts.size())
2027     {
2028         throw UnicodeException("invalid extended page index" + std::to_string(pageIndex));
2029     }
2030     extendedPageStarts[pageIndex] = extendedPageStart;
2031 }


Declaration at line 1024 of Unicode.hpp

Called by: soulng::unicode::CharacterTable::Write


Write Member Function

void soulng::unicode::ExtendedCharacterInfoHeader::Write(BinaryWriter& writer)

Definition at line 1995 of Unicode.cpp :
1996 {
1997     uint32_t n = extendedPageStarts.size();
1998     writer.Write(n);
1999     for (uint32_t i = 0; i < n; ++i)
2000     {
2001         writer.Write(extendedPageStarts[i]);
2002     }
2003 }


Calls: soulng::unicode::ExtendedCharacterInfoHeader::Write

Called by: soulng::unicode::CharacterTable::Write , soulng::unicode::ExtendedCharacterInfoHeader::Write


top | up | prev | next