public LhaFileInputStream(LhaFile file, LhaEntry entry) : base(file.binaryReader.BaseStream, file.encoding) { if (file == null || entry == null) { throw new NullReferenceException(); } this.file = file; this.pos = entry.GetOffset(); this.count = entry.GetCompressedSize(); file.binaryReader.BaseStream.Position = this.pos; }