Refactor memory stream

Clean up a few things.
This commit is contained in:
Ted John authored and GitHub committed 2017-02-05 02:40:16 +00:00
1 parent b21378b7f5
commit 652cad15c4
5 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -350,7 +350,7 @@ private:
// Buffer the rest of file into memory to speed up item reading
size_t dataSize = (size_t)(fs.GetLength() - fs.GetPosition());
void * data = fs.ReadArray<uint8>(dataSize);
auto ms = MemoryStream(data, dataSize, MEMORY_ACCESS_READ | MEMORY_ACCESS_OWNER);
auto ms = MemoryStream(data, dataSize, MEMORY_ACCESS::READ | MEMORY_ACCESS::OWNER);
// Read items
for (uint32 i = 0; i < header.NumItems; i++)