aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel/outputpersistenceblock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/kernel/outputpersistenceblock.cpp')
-rw-r--r--engines/sword25/kernel/outputpersistenceblock.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/engines/sword25/kernel/outputpersistenceblock.cpp b/engines/sword25/kernel/outputpersistenceblock.cpp
index b81f3c1bbe..b1c3233b59 100644
--- a/engines/sword25/kernel/outputpersistenceblock.cpp
+++ b/engines/sword25/kernel/outputpersistenceblock.cpp
@@ -72,27 +72,20 @@ void OutputPersistenceBlock::write(bool value) {
rawWrite(&uintBool, sizeof(uintBool));
}
-void OutputPersistenceBlock::write(const Common::String &string) {
+void OutputPersistenceBlock::writeString(const Common::String &string) {
writeMarker(STRING_MARKER);
write(string.size());
rawWrite(string.c_str(), string.size());
}
-void OutputPersistenceBlock::write(Common::Array<byte> &value) {
+void OutputPersistenceBlock::writeByteArray(Common::Array<byte> &value) {
writeMarker(BLOCK_MARKER);
write((uint)value.size());
rawWrite(&value[0], value.size());
}
-void OutputPersistenceBlock::write(const void *bufferPtr, size_t size) {
- writeMarker(BLOCK_MARKER);
-
- write((int)size);
- rawWrite(bufferPtr, size);
-}
-
void OutputPersistenceBlock::writeMarker(byte marker) {
_data.push_back(marker);
}