Saveload: Use std::span for autosave temporary buffer view

This commit is contained in:
Jonathan G Rennison
2024-02-19 18:43:17 +00:00
parent 75dd135e8d
commit 8a85055c68
3 changed files with 11 additions and 12 deletions

View File

@@ -268,7 +268,7 @@ struct MemoryDumper {
void Flush(SaveFilter &writer);
size_t GetSize() const;
void StartAutoLength();
std::pair<byte *, size_t> StopAutoLength();
std::span<byte> StopAutoLength();
bool IsAutoLengthActive() const { return this->saved_buf != nullptr; }
};