public abstract Read ( IffFile iff, Stream stream ) : void | ||
iff | IffFile | The IFF to read from. |
stream | Stream | The stream to read from. |
return | void |
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); }