aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel/outputpersistenceblock.cpp
diff options
context:
space:
mode:
authorMax Horn2010-10-28 00:26:25 +0000
committerMax Horn2010-10-28 00:26:25 +0000
commitb2fa7e58a395b883e7c59ecb1f29f8fc6607885b (patch)
tree01e5d568b0d7fe4b42b0abca5c1f0fa80654e196 /engines/sword25/kernel/outputpersistenceblock.cpp
parentcf3551525f4583ec8a5feb231cb25d81a9722853 (diff)
downloadscummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.tar.gz
scummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.tar.bz2
scummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.zip
SWORD25: Start to rename read/write methods of *PersistenceBlock classes
All should be renamed to reduce risk of accidental incorrect use. svn-id: r53899
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);
}