This commit is contained in:
parent
49b7f80265
commit
e3c1590f81
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
using System.Diagnostics.CodeAnalysis;
|
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
|
||||||
namespace Nyanbyte.Sysnya.Binary;
|
namespace Nyanbyte.Sysnya.Binary;
|
||||||
|
@ -94,8 +93,8 @@ public class BinaryStructMapper<T> where T : notnull, new()
|
||||||
throw new ArgumentException($"Data shorter than minimum expected: expected {_minMemoryLen} bytes; got: {bytes.Length} bytes");
|
throw new ArgumentException($"Data shorter than minimum expected: expected {_minMemoryLen} bytes; got: {bytes.Length} bytes");
|
||||||
}
|
}
|
||||||
|
|
||||||
T obj = Activator.CreateInstance<T>();
|
var obj = Activator.CreateInstance<T>();
|
||||||
var enumerator = _funcPipeline.GetEnumerator();
|
using var enumerator = _funcPipeline.GetEnumerator();
|
||||||
while (enumerator.MoveNext())
|
while (enumerator.MoveNext())
|
||||||
{
|
{
|
||||||
var func = enumerator.Current;
|
var func = enumerator.Current;
|
||||||
|
|
Loading…
Reference in a new issue