12 BufferStreamReadOnly stream{hotData};
19 this->
rects.resize(stream.read<uint16_t>());
20 for (
auto& [flags_, x1, y1, x2, y2] : this->
rects) {
21 stream >> flags_ >> x1 >> y1 >> x2 >> y2;
66 std::vector<std::byte> hotspotData;
67 BufferStream stream{hotspotData};
70 stream.write<uint16_t>(this->
rects.size());
72 for (
const auto& [flags_, x1, y1, x2, y2] : this->
rects) {
73 stream << flags_ << x1 << y1 << x2 << y2;
76 hotspotData.resize(stream.tell());