holopy3/Assets/UniGLTF/UniJSON/Scripts/MsgPack/MsgPackValue.cs

25 lines
478 B
C#
Raw Permalink Normal View History

2021-01-28 12:07:52 +00:00
using System;
namespace UniJSON.MsgPack
{
public struct MsgPackValue
{
public ArraySegment<Byte> Segment;
public int ParentIndex;
public MsgPackType Format
{
get
{
return (MsgPackType)Segment.Get(0);
}
}
public MsgPackValue(ArraySegment<Byte> segment, int parentIndex)
{
Segment = segment;
ParentIndex = parentIndex;
}
}
}