Get rid of StreamBuffer::read_entire_contents and StreamBuffer::hash

This commit is contained in:
2023-10-18 14:32:12 -04:00
parent 3e8aa31a95
commit 6c2a27b274
4 changed files with 2 additions and 22 deletions

View File

@@ -136,7 +136,7 @@ eng::string AnimState::encode() const {
sb.write_bool(value.persistent);
sb.write_simple_dynamic(value);
}
return sb.read_entire_contents();
return eng::string(sb.view());
}
void AnimState::decode(std::string_view s) {