1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 06:44:10 +02:00

Added required 'using'

This commit is contained in:
Brian Fiete 2022-11-23 06:22:58 -08:00
parent f055c9ff01
commit c52f3a247e

View file

@ -1,4 +1,5 @@
using System.Collections; using System.Collections;
using System.Diagnostics;
namespace System.IO namespace System.IO
{ {
@ -52,10 +53,10 @@ namespace System.IO
} }
public this(int capacity) public this(int capacity)
{ {
mOwns = true; mOwns = true;
mMemory = new List<uint8>(capacity); mMemory = new List<uint8>(capacity);
} }
public this(List<uint8> memory, bool owns = true) public this(List<uint8> memory, bool owns = true)
{ {
@ -98,15 +99,15 @@ namespace System.IO
} }
public override Result<void> SetLength(int64 length) public override Result<void> SetLength(int64 length)
{ {
Debug.Assert(mOwns); Debug.Assert(mOwns);
mMemory.Resize((.)length); mMemory.Resize((.)length);
if (Position >= length) if (Position >= length)
Position = Length; Position = Length;
return .Ok; return .Ok;
} }
} }
} }