aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
diff options
context:
space:
mode:
authorEugene Sandulenko2017-01-14 12:45:58 +0100
committerEugene Sandulenko2017-01-14 12:45:58 +0100
commit0b95b734b85219044fe817c0609d1d23d6203700 (patch)
tree550b9a02396d1239fc0b994be5eea1e5587582d5 /common/stream.h
parent599184ab19e2ff6500c0c7fcbb314a5e7cd0e2b0 (diff)
downloadscummvm-rg350-0b95b734b85219044fe817c0609d1d23d6203700.tar.gz
scummvm-rg350-0b95b734b85219044fe817c0609d1d23d6203700.tar.bz2
scummvm-rg350-0b95b734b85219044fe817c0609d1d23d6203700.zip
COMMON: Add ReadStream::readPascalString()
Diffstat (limited to 'common/stream.h')
-rw-r--r--common/stream.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/stream.h b/common/stream.h
index 30107720dc..0ff430f41b 100644
--- a/common/stream.h
+++ b/common/stream.h
@@ -427,6 +427,14 @@ public:
*/
SeekableReadStream *readStream(uint32 dataSize);
+ /**
+ * Read stream in Pascal format, that is, one byte is
+ * string length, followed by string data
+ *
+ * @param transformCR if set (default), then transform \r into \n
+ */
+ Common::String readPascalString(bool transformCR = true);
+
};