C# 클래스 ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream

An output stream that compresses into the BZip2 format including file header chars into another stream.
상속: Stream
파일 보기 프로젝트 열기: icsharpcode/SharpZipLib 1 사용 예제들

공개 메소드들

메소드 설명
BZip2OutputStream ( Stream stream ) : System

Construct a default output stream with maximum block size

BZip2OutputStream ( Stream stream, int blockSize ) : System

Initialise a new instance of the for the specified stream, using the given blocksize.

Valid block sizes are in the range 1..9, with 1 giving the lowest compression and 9 the highest.

Flush ( ) : void

Flush output buffers

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

Read a block of bytes

ReadByte ( ) : int

Read a byte from the stream advancing the position.

Seek ( long offset, SeekOrigin origin ) : long

Sets the current position of this stream to the given value.

SetLength ( long value ) : void

Sets the length of this stream to the given value.

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

Write a block of bytes to the stream

WriteByte ( byte value ) : void

Write a byte to the stream.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the BZip2OutputStream and optionally releases the managed resources.

비공개 메소드들

메소드 설명
AllocateCompressStructures ( ) : void
BsFinishedWithStream ( ) : void
BsPutIntVS ( int numBits, int c ) : void
BsPutUChar ( int c ) : void
BsPutint ( int u ) : void
BsSetStream ( Stream stream ) : void
BsW ( int n, int v ) : void
DoReversibleTransformation ( ) : void
EndBlock ( ) : void
EndCompression ( ) : void
FullGtU ( int i1, int i2 ) : bool
GenerateMTFValues ( ) : void
HbAssignCodes ( int code, char length, int minLen, int maxLen, int alphaSize ) : void
HbMakeCodeLengths ( char len, int freq, int alphaSize, int maxLen ) : void
InitBlock ( ) : void
Initialize ( ) : void
MainSort ( ) : void
MakeMaps ( ) : void
Med3 ( byte a, byte b, byte c ) : byte
MoveToFrontCodeAndSend ( ) : void
Panic ( ) : void
QSort3 ( int loSt, int hiSt, int dSt ) : void
RandomiseBlock ( ) : void
SendMTFValues ( ) : void
SimpleSort ( int lo, int hi, int d ) : void
Vswap ( int p1, int p2, int n ) : void
WriteRun ( ) : void

Get the number of bytes written to output.

메소드 상세

BZip2OutputStream() 공개 메소드

Construct a default output stream with maximum block size
public BZip2OutputStream ( Stream stream ) : System
stream Stream The stream to write BZip data onto.
리턴 System

BZip2OutputStream() 공개 메소드

Initialise a new instance of the for the specified stream, using the given blocksize.
Valid block sizes are in the range 1..9, with 1 giving the lowest compression and 9 the highest.
public BZip2OutputStream ( Stream stream, int blockSize ) : System
stream Stream The stream to write compressed data to.
blockSize int The block size to use.
리턴 System

Dispose() 보호된 메소드

Releases the unmanaged resources used by the BZip2OutputStream and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

Flush() 공개 메소드

Flush output buffers
public Flush ( ) : void
리턴 void

Read() 공개 메소드

Read a block of bytes
public Read ( byte buffer, int offset, int count ) : int
buffer byte The buffer to read into.
offset int The offset in the buffer to start storing data at.
count int The maximum number of bytes to read.
리턴 int

ReadByte() 공개 메소드

Read a byte from the stream advancing the position.
public ReadByte ( ) : int
리턴 int

Seek() 공개 메소드

Sets the current position of this stream to the given value.
public Seek ( long offset, SeekOrigin origin ) : long
offset long The point relative to the offset from which to being seeking.
origin SeekOrigin The reference point from which to begin seeking.
리턴 long

SetLength() 공개 메소드

Sets the length of this stream to the given value.
public SetLength ( long value ) : void
value long The new stream length.
리턴 void

Write() 공개 메소드

Write a block of bytes to the stream
public Write ( byte buffer, int offset, int count ) : void
buffer byte The buffer containing data to write.
offset int The offset of the first byte to write.
count int The number of bytes to write.
리턴 void

WriteByte() 공개 메소드

Write a byte to the stream.
public WriteByte ( byte value ) : void
value byte The byte to write to the stream.
리턴 void