FSO.Files.Formats.IFF.IffChunk.Read C# (CSharp) Method

Read() public abstract method

Reads this chunk from an IFF.
public abstract Read ( IffFile iff, Stream stream ) : void
iff IffFile The IFF to read from.
stream Stream The stream to read from.
return void
        public abstract void Read(IffFile iff, Stream stream);

Usage Example

Exemplo n.º 1
0
        private T prepare <T>(object input)
        {
            IffChunk chunk = (IffChunk)input;

            if (chunk.ChunkProcessed != true)
            {
                lock (chunk)
                {
                    if (chunk.ChunkProcessed != true)
                    {
                        using (var stream = new MemoryStream(chunk.ChunkData))
                        {
                            chunk.Read(this,stream);
                            chunk.ChunkData      = null;
                            chunk.ChunkProcessed = true;
                        }
                    }
                }
            }
            return((T)input);
        }