Example #1
0
        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);
            }
        }
Example #2
0
 public GlbChunk(GlbChunkType type, ArraySegment <Byte> bytes)
 {
     ChunkType = type;
     Bytes     = bytes;
 }