示例#1
0
        public byte[] GetEntryBytes(LhaEntry entry)
        {
            byte[] buffer = new byte[entry.GetOriginalSize()];
            LhaDecoderInputStream inputStream = GetInputStream(entry);

            inputStream.Read(buffer, 0, buffer.Length);
            return(buffer);
        }
 /**
  * Reads from the current input stream.
  *
  * @param pos
  *            the offset in lha file
  * @return the next byte of data, or <code>-1</code> if the end of the
  *         stream is reached
  * @throws IOException
  *             if an I/O error has occurred
  */
 public override int Read()
 {
     EnsureOpen();
     return(dis.Read());
 }