]> git.tdb.fi Git - libs/core.git/commit
Add a mode parameter to Memory constructor with non-const pointers
authorMikko Rasa <tdb@tdb.fi>
Thu, 27 Sep 2012 20:41:20 +0000 (23:41 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 27 Sep 2012 20:41:20 +0000 (23:41 +0300)
commit20b368c89a98f22243a0d496037ad0c43671eea7
tree649b8c1707a4545f61f50ba048935a912de4b1e4
parentbe67e7f4a28332bfab44d0cbc9f008e24ddf3510
Add a mode parameter to Memory constructor with non-const pointers

This makes it possible to explicitly set the mode for a Memory, and in
particular to create a write-only Memory.  ZlibCompressed does not work
with M_RDWR so writing compressed data to memory was impossible before
this commit.
source/io/memory.cpp
source/io/memory.h