/// <summary> /// Enumerates through all chunks in file. /// </summary> /// <returns></returns> public IEnumerable <IFFChunk> ReadAll() { while (fileread < filelength) { IFFChunk chunk = ReadChunkHeader(); yield return(chunk); if (rest > 0) { ReadRest(); } } }
private void Apply(IFFChunk chunk) { this.TypeID = chunk.TypeID; this.Length = chunk.Length; }