Add binary buffer class
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user