|
|
|
@ -2137,7 +2137,7 @@ std::uint32_t TimeBasedDrawnSection::minimumFormatVersion() const { |
|
|
|
|
|
|
|
|
|
|
|
std::size_t TimeBasedDrawnSection::serializeTo(std::span<std::byte> target, std::uint32_t formatVersion) const { |
|
|
|
std::size_t TimeBasedDrawnSection::serializeTo(std::span<std::byte> target, std::uint32_t formatVersion) const { |
|
|
|
std::size_t pos = 0; |
|
|
|
std::size_t pos = 0; |
|
|
|
pos = writeU8LE(target, pos, static_cast<std::uint16_t>(SectionType::AlwaysDrawn)); |
|
|
|
pos = writeU8LE(target, pos, static_cast<std::uint16_t>(SectionType::TimeBasedDrawn)); |
|
|
|
// Will be replaced later
|
|
|
|
// Will be replaced later
|
|
|
|
pos = writeU24LE(target, pos, 0); |
|
|
|
pos = writeU24LE(target, pos, 0); |
|
|
|
std::uint16_t flags = 0; |
|
|
|
std::uint16_t flags = 0; |
|
|
|
@ -2303,7 +2303,7 @@ std::size_t CustomFontSection::serializeTo(std::span<std::byte> target, std::uin |
|
|
|
std::ignore = formatVersion; |
|
|
|
std::ignore = formatVersion; |
|
|
|
|
|
|
|
|
|
|
|
std::size_t pos = 0; |
|
|
|
std::size_t pos = 0; |
|
|
|
pos = writeU8LE(target, pos, static_cast<std::uint16_t>(SectionType::AlwaysDrawn)); |
|
|
|
pos = writeU8LE(target, pos, static_cast<std::uint16_t>(SectionType::CustomFont)); |
|
|
|
// Will be replaced later
|
|
|
|
// Will be replaced later
|
|
|
|
pos = writeU24LE(target, pos, 0); |
|
|
|
pos = writeU24LE(target, pos, 0); |
|
|
|
pos = writeU24LE(target, pos, m_fontData.size()); |
|
|
|
pos = writeU24LE(target, pos, m_fontData.size()); |
|
|
|
|