Beispiel #1
0
        /// <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();
                }
            }
        }
Beispiel #2
0
 private void Apply(IFFChunk chunk)
 {
     this.TypeID = chunk.TypeID;
     this.Length = chunk.Length;
 }
Beispiel #3
0
 private void Apply(IFFChunk chunk)
 {
     this.TypeID = chunk.TypeID;
     this.Length = chunk.Length;
 }