public static string ToChunkTypeString(this GlbChunkType type) { switch (type) { case GlbChunkType.JSON: return("JSON"); case GlbChunkType.BIN: return("BIN"); default: throw new ArgumentOutOfRangeException(nameof(type), type, null); } }
public GlbChunk(GlbChunkType type, ArraySegment <Byte> bytes) { ChunkType = type; Bytes = bytes; }