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:
parent
f055c9ff01
commit
c52f3a247e
1 changed files with 12 additions and 11 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue