public int FindChunk(EChunkType aType, int aStartIndex = 0) { if (chunks == null) { return(-1); } for (int i = aStartIndex; i < chunks.Count; i++) { if (chunks[i].type == aType) { return(i); } } return(-1); }
public static string GetName(EChunkType type) { return(StrTypes.First(x => x.Value == type).Key); }
public void OverrideChunkToRaw(EChunkType type) => ChunkTypesAsRaw.Add(type);