C# Класс ICSharpCode.SharpZipLib.BZip2.BZip2InputStream

An input stream that decompresses files in the BZip2 format
Наследование: Stream
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BZip2InputStream ( Stream stream ) : System

Construct instance for reading from stream

Flush ( ) : void

Flushes the stream.

Read ( byte buffer, int offset, int count ) : int

Read a sequence of bytes and advances the read position by one byte.

ReadByte ( ) : int

Read a byte from stream advancing position

Seek ( long offset, SeekOrigin origin ) : long

Set the streams position. This operation is not supported and will throw a NotSupportedException

SetLength ( long value ) : void

Sets the length of this stream to the given value. This operation is not supported and will throw a NotSupportedExceptionortedException

Write ( byte buffer, int offset, int count ) : void

Writes a block of bytes to this stream using data from a buffer. This operation is not supported and will throw a NotSupportedException

WriteByte ( byte value ) : void

Writes a byte to the current position in the file stream. This operation is not supported and will throw a NotSupportedException

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Closes the stream, releasing any associated resources.

Приватные методы

Метод Описание
BadBlockHeader ( ) : void
BlockOverrun ( ) : void
BsGetInt32 ( ) : int
BsGetIntVS ( int numBits ) : int
BsGetUChar ( ) : char
BsR ( int n ) : int
BsSetStream ( Stream stream ) : void
Complete ( ) : void
CompressedStreamEOF ( ) : void
CrcError ( ) : void
EndBlock ( ) : void
FillBuffer ( ) : void
GetAndMoveToFrontDecode ( ) : void
HbCreateDecodeTables ( int limit, int baseArray, int perm, char length, int minLen, int maxLen, int alphaSize ) : void
InitBlock ( ) : void
Initialize ( ) : void
MakeMaps ( ) : void
RecvDecodingTables ( ) : void
SetDecompressStructureSizes ( int newSize100k ) : void
SetupBlock ( ) : void
SetupNoRandPartA ( ) : void
SetupNoRandPartB ( ) : void
SetupNoRandPartC ( ) : void
SetupRandPartA ( ) : void
SetupRandPartB ( ) : void
SetupRandPartC ( ) : void

Описание методов

BZip2InputStream() публичный Метод

Construct instance for reading from stream
public BZip2InputStream ( Stream stream ) : System
stream Stream Data source
Результат System

Dispose() защищенный Метод

Closes the stream, releasing any associated resources.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Flush() публичный Метод

Flushes the stream.
public Flush ( ) : void
Результат void

Read() публичный Метод

Read a sequence of bytes and advances the read position by one byte.
public Read ( byte buffer, int offset, int count ) : int
buffer byte Array of bytes to store values in
offset int Offset in array to begin storing data
count int The maximum number of bytes to read
Результат int

ReadByte() публичный Метод

Read a byte from stream advancing position
public ReadByte ( ) : int
Результат int

Seek() публичный Метод

Set the streams position. This operation is not supported and will throw a NotSupportedException
Any access
public Seek ( long offset, SeekOrigin origin ) : long
offset long A byte offset relative to the parameter.
origin SeekOrigin A value of type indicating the reference point used to obtain the new position.
Результат long

SetLength() публичный Метод

Sets the length of this stream to the given value. This operation is not supported and will throw a NotSupportedExceptionortedException
Any access
public SetLength ( long value ) : void
value long The new length for the stream.
Результат void

Write() публичный Метод

Writes a block of bytes to this stream using data from a buffer. This operation is not supported and will throw a NotSupportedException
Any access
public Write ( byte buffer, int offset, int count ) : void
buffer byte The buffer to source data from.
offset int The offset to start obtaining data from.
count int The number of bytes of data to write.
Результат void

WriteByte() публичный Метод

Writes a byte to the current position in the file stream. This operation is not supported and will throw a NotSupportedException
Any access
public WriteByte ( byte value ) : void
value byte The value to write.
Результат void