Overhaul animation queues so the queue is stored as a single encoded string.
This commit is contained in:
@@ -304,6 +304,11 @@ public:
|
||||
//
|
||||
void read_bytes_into(char *target, int64_t len);
|
||||
|
||||
// Read a string as a string_view.
|
||||
//
|
||||
std::string_view read_string_view_limit(uint64_t limit);
|
||||
std::string_view read_string_view() { return read_string_view_limit(0x1000000); }
|
||||
|
||||
// Read and write larger types.
|
||||
//
|
||||
// Throws StreamEof if the specified number of bytes aren't present.
|
||||
@@ -385,7 +390,7 @@ public:
|
||||
// This is always false, because this module throws exceptions
|
||||
// when reading beyond EOF.
|
||||
bool read_beyond_eof() { return false; }
|
||||
|
||||
|
||||
private:
|
||||
// Start and end of the allocated block.
|
||||
char *buf_lo_;
|
||||
|
||||
Reference in New Issue
Block a user