Add binary buffer class

This commit is contained in:
hevinci
2022-12-03 18:42:28 +08:00
parent 4ec5a126ac
commit 7aab610be5
6 changed files with 524 additions and 0 deletions
@@ -0,0 +1,22 @@
using System.Runtime.InteropServices;
namespace YooAsset
{
[StructLayout(LayoutKind.Explicit)]
internal struct DoubleContent
{
[FieldOffset(0)]
public double doubleValue;
[FieldOffset(0)]
public ulong ulongValue;
}
[StructLayout(LayoutKind.Explicit)]
internal struct FloatContent
{
[FieldOffset(0)]
public float floatValue;
[FieldOffset(0)]
public uint uintValue;
}
}