protected virtual string Peep(BinaryReader reader) { // Get the current position. long pos = reader.BaseStream.Position; // Read a header. CaligariChunkHeader header = new CaligariChunkHeader(); header.Read(reader); // Move the file to it's original position. reader.BaseStream.Position = pos; // Return the type. return(header.chunkType); }
protected virtual string Peep(BinaryReader reader) { // Get the current position. long pos = reader.BaseStream.Position; // Read a header. CaligariChunkHeader header = new CaligariChunkHeader(); header.Read(reader); // Move the file to it's original position. reader.BaseStream.Position = pos; // Return the type. return header.chunkType; }