diff --git a/Noggog.CSharpExt/Streams/Binary/BinaryReadStream.cs b/Noggog.CSharpExt/Streams/Binary/BinaryReadStream.cs index beaea63..e228455 100644 --- a/Noggog.CSharpExt/Streams/Binary/BinaryReadStream.cs +++ b/Noggog.CSharpExt/Streams/Binary/BinaryReadStream.cs @@ -249,7 +249,7 @@ public ReadOnlyMemorySlice ReadMemory(int amount, int offset, bool readSaf public ReadOnlyMemorySlice GetMemory(int amount, bool readSafe = true) { - var ret = ReadMemory(amount); + var ret = ReadMemory(amount, readSafe: readSafe); Position -= ret.Length; return ret; } @@ -257,7 +257,7 @@ public ReadOnlyMemorySlice GetMemory(int amount, bool readSafe = true) public ReadOnlyMemorySlice GetMemory(int amount, int offset, bool readSafe = true) { Position += offset; - var ret = ReadMemory(amount); + var ret = ReadMemory(amount, readSafe: readSafe); Position -= ret.Length + offset; return ret; }