ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer Class Reference

An input buffer customised for use by InflaterInputStream. More...

List of all members.

Public Member Functions

 InflaterInputBuffer (Stream stream)
 Initialise a new instance of InflaterInputBuffer.
void SetInflaterInput (Inflater inflater)
 Call Inflater::SetInput passing the current clear text buffer contents.
void Fill ()
 Fill the buffer from the underlying input stream.
int ReadRawBuffer (byte[] buffer)
 Read a buffer directly from the input stream.
int ReadRawBuffer (byte[] outBuffer, int offset, int length)
 Read a buffer directly from the input stream.
int ReadClearTextBuffer (byte[] outBuffer, int offset, int length)
 Read clear text data from the input stream.
int ReadLeByte ()
 Read a byte from the input stream.
int ReadLeShort ()
 Read an unsigned short in little endian byte order.
int ReadLeInt ()
 Read an int in little endian byte order.
long ReadLeLong ()
 Read an int baseInputStream little endian byte order.

Properties

int RawLength
 Get the length of bytes bytes in the RawData.
byte[] RawData
 Get the contents of the raw data buffer.
int ClearTextLength
 Get the number of useable bytes in ClearText.
byte[] ClearText
 Get the contents of the clear text buffer.
int Available
 Get/set the number of bytes available.
ICryptoTransform CryptoTransform
 Get/set the ICryptoTransform to apply to any data.
int rawLength
byte[] rawData
int clearTextLength
byte[] clearText
byte[] internalClearText
int available
ICryptoTransform cryptoTransform
Stream inputStream


Detailed Description

An input buffer customised for use by InflaterInputStream.

The buffer supports decryption of incoming data.

Definition at line 56 of file InflaterInputStream.cs.


Constructor & Destructor Documentation

ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::InflaterInputBuffer Stream  stream  )  [inline]
 

Initialise a new instance of InflaterInputBuffer.

Parameters:
stream The stream to buffer.

Definition at line 62 of file InflaterInputStream.cs.


Member Function Documentation

void ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::Fill  )  [inline]
 

Fill the buffer from the underlying input stream.

Definition at line 134 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::ReadClearTextBuffer byte[]  outBuffer,
int  offset,
int  length
[inline]
 

Read clear text data from the input stream.

Parameters:
outBuffer The buffer to add data to.
offset The offset to start adding data at.
length The number of bytes to read.
Returns:
Returns the number of bytes actually read.

Definition at line 210 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::ReadLeByte  )  [inline]
 

Read a byte from the input stream.

Returns:
Returns the byte read.

Definition at line 240 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::ReadLeInt  )  [inline]
 

Read an int in little endian byte order.

Definition at line 264 of file InflaterInputStream.cs.

long ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::ReadLeLong  )  [inline]
 

Read an int baseInputStream little endian byte order.

Definition at line 272 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::ReadLeShort  )  [inline]
 

Read an unsigned short in little endian byte order.

Definition at line 256 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::ReadRawBuffer byte[]  outBuffer,
int  offset,
int  length
[inline]
 

Read a buffer directly from the input stream.

Parameters:
outBuffer The buffer to read into
offset The offset to start reading data into.
length The number of bytes to read.
Returns:
Returns the number of bytes read.

Definition at line 178 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::ReadRawBuffer byte[]  buffer  )  [inline]
 

Read a buffer directly from the input stream.

Parameters:
buffer The buffer to fill
Returns:
Returns the number of bytes read.

Definition at line 166 of file InflaterInputStream.cs.

void ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::SetInflaterInput Inflater  inflater  )  [inline]
 

Call Inflater::SetInput passing the current clear text buffer contents.

Parameters:
inflater The inflater to set input for.

Definition at line 123 of file InflaterInputStream.cs.

References ICSharpCode::SharpZipLib::Zip::Compression::Inflater::SetInput().


Property Documentation

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::available [private]
 

Definition at line 312 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::Available [get, set]
 

Get/set the number of bytes available.

Definition at line 114 of file InflaterInputStream.cs.

byte [] ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::clearText [private]
 

Definition at line 308 of file InflaterInputStream.cs.

byte [] ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::ClearText [get]
 

Get the contents of the clear text buffer.

Definition at line 104 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::clearTextLength [private]
 

Definition at line 307 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::ClearTextLength [get]
 

Get the number of useable bytes in ClearText.

Definition at line 94 of file InflaterInputStream.cs.

ICryptoTransform ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::cryptoTransform [private]
 

Definition at line 314 of file InflaterInputStream.cs.

ICryptoTransform ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::CryptoTransform [set]
 

Get/set the ICryptoTransform to apply to any data.

Set this value to null to have no transform applied.

Definition at line 282 of file InflaterInputStream.cs.

Stream ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::inputStream [private]
 

Definition at line 315 of file InflaterInputStream.cs.

byte [] ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::internalClearText [private]
 

Definition at line 310 of file InflaterInputStream.cs.

byte [] ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::rawData [private]
 

Definition at line 305 of file InflaterInputStream.cs.

byte [] ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::RawData [get]
 

Get the contents of the raw data buffer.

This may contain encrypted data.

Definition at line 84 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::rawLength [private]
 

Definition at line 304 of file InflaterInputStream.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::Streams::InflaterInputBuffer::RawLength [get]
 

Get the length of bytes bytes in the RawData.

Definition at line 73 of file InflaterInputStream.cs.


The documentation for this class was generated from the following file:
Generated on Fri Jun 23 21:50:08 2006 for OblivionModTranslator by  doxygen 1.4.6-NO