An output stream that compresses into the BZip2 format including file header chars into another stream.
More...
|
| | BZip2OutputStream (Stream stream) |
| | Construct a default output stream with maximum block size.
|
| | BZip2OutputStream (Stream stream, int blockSize) |
| | Initialise a new instance of the BZip2OutputStream for the specified stream, using the given blocksize.
|
| override long | Seek (long offset, SeekOrigin origin) |
| | Sets the current position of this stream to the given value.
|
| override void | SetLength (long value) |
| | Sets the length of this stream to the given value.
|
| override int | ReadByte () |
| | Read a byte from the stream advancing the position.
|
| override int | Read (byte[] buffer, int offset, int count) |
| | Read a block of bytes.
|
| override void | Write (byte[] buffer, int offset, int count) |
| | Write a block of bytes to the stream.
|
| override void | WriteByte (byte value) |
| | Write a byte to the stream.
|
| override void | Close () |
| | End the current block and end compression. Close the stream and free any resources.
|
| override void | Flush () |
| | Flush output buffers.
|
|
| override void | Dispose (bool disposing) |
| | Releases the unmanaged resources used by the BZip2OutputStream and optionally releases the managed resources.
|
|
| bool | IsStreamOwner [get, set] |
| | Get/set flag indicating ownership of underlying stream. When the flag is true Close will close the underlying stream also.
|
| override bool | CanRead [get] |
| | Gets a value indicating whether the current stream supports reading.
|
| override bool | CanSeek [get] |
| | Gets a value indicating whether the current stream supports seeking.
|
| override bool | CanWrite [get] |
| | Gets a value indicating whether the current stream supports writing.
|
| override long | Length [get] |
| | Gets the length in bytes of the stream.
|
| override long | Position [get, set] |
| | Gets or sets the current position of this stream.
|
| int | BytesWritten [get] |
| | Get the number of bytes written to the output.
|
|
| static void | Panic () |
| static void | HbMakeCodeLengths (char[] len, int[] freq, int alphaSize, int maxLen) |
| static void | HbAssignCodes (int[] code, char[] length, int minLen, int maxLen, int alphaSize) |
| static byte | Med3 (byte a, byte b, byte c) |
An output stream that compresses into the BZip2 format including file header chars into another stream.
◆ BZip2OutputStream() [1/2]
| ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.BZip2OutputStream |
( |
Stream | stream | ) |
|
Construct a default output stream with maximum block size.
- Parameters
-
| stream | The stream to write BZip data onto. |
◆ BZip2OutputStream() [2/2]
| ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.BZip2OutputStream |
( |
Stream | stream, |
|
|
int | blockSize ) |
Initialise a new instance of the BZip2OutputStream for the specified stream, using the given blocksize.
- Parameters
-
| stream | The stream to write compressed data to. |
| blockSize | The block size to use. |
Valid block sizes are in the range 1..9, with 1 giving the lowest compression and 9 the highest.
◆ ~BZip2OutputStream()
| ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.~BZip2OutputStream |
( |
| ) |
|
|
private |
Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the BZip2OutputStream.
◆ AllocateCompressStructures()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.AllocateCompressStructures |
( |
| ) |
|
|
private |
◆ BsFinishedWithStream()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.BsFinishedWithStream |
( |
| ) |
|
|
private |
◆ BsPutint()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.BsPutint |
( |
int | u | ) |
|
|
private |
◆ BsPutIntVS()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.BsPutIntVS |
( |
int | numBits, |
|
|
int | c ) |
|
private |
◆ BsPutUChar()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.BsPutUChar |
( |
int | c | ) |
|
|
private |
◆ BsSetStream()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.BsSetStream |
( |
Stream | stream | ) |
|
|
private |
◆ BsW()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.BsW |
( |
int | n, |
|
|
int | v ) |
|
private |
◆ Close()
| override void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Close |
( |
| ) |
|
End the current block and end compression. Close the stream and free any resources.
◆ Dispose()
| override void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Dispose |
( |
bool | disposing | ) |
|
|
protected |
Releases the unmanaged resources used by the BZip2OutputStream and optionally releases the managed resources.
- Parameters
-
| disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
◆ DoReversibleTransformation()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.DoReversibleTransformation |
( |
| ) |
|
|
private |
◆ EndBlock()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.EndBlock |
( |
| ) |
|
|
private |
◆ EndCompression()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.EndCompression |
( |
| ) |
|
|
private |
◆ Flush()
| override void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Flush |
( |
| ) |
|
◆ FullGtU()
| bool ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.FullGtU |
( |
int | i1, |
|
|
int | i2 ) |
|
private |
◆ GenerateMTFValues()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.GenerateMTFValues |
( |
| ) |
|
|
private |
◆ HbAssignCodes()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.HbAssignCodes |
( |
int[] | code, |
|
|
char[] | length, |
|
|
int | minLen, |
|
|
int | maxLen, |
|
|
int | alphaSize ) |
|
staticprivate |
◆ HbMakeCodeLengths()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.HbMakeCodeLengths |
( |
char[] | len, |
|
|
int[] | freq, |
|
|
int | alphaSize, |
|
|
int | maxLen ) |
|
staticprivate |
◆ InitBlock()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.InitBlock |
( |
| ) |
|
|
private |
◆ Initialize()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Initialize |
( |
| ) |
|
|
private |
◆ MainSort()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.MainSort |
( |
| ) |
|
|
private |
◆ MakeMaps()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.MakeMaps |
( |
| ) |
|
|
private |
◆ Med3()
| byte ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Med3 |
( |
byte | a, |
|
|
byte | b, |
|
|
byte | c ) |
|
staticprivate |
◆ MoveToFrontCodeAndSend()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.MoveToFrontCodeAndSend |
( |
| ) |
|
|
private |
◆ Panic()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Panic |
( |
| ) |
|
|
staticprivate |
◆ QSort3()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.QSort3 |
( |
int | loSt, |
|
|
int | hiSt, |
|
|
int | dSt ) |
|
private |
◆ RandomiseBlock()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.RandomiseBlock |
( |
| ) |
|
|
private |
◆ Read()
| override int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Read |
( |
byte[] | buffer, |
|
|
int | offset, |
|
|
int | count ) |
Read a block of bytes.
- Parameters
-
| buffer | The buffer to read into. |
| offset | The offset in the buffer to start storing data at. |
| count | The maximum number of bytes to read. |
- Returns
- The total number of bytes read. This might be less than the number of bytes requested if that number of bytes are not currently available, or zero if the end of the stream is reached.
◆ ReadByte()
| override int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.ReadByte |
( |
| ) |
|
Read a byte from the stream advancing the position.
- Returns
- The byte read cast to an int; -1 if end of stream.
◆ Seek()
| override long ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Seek |
( |
long | offset, |
|
|
SeekOrigin | origin ) |
Sets the current position of this stream to the given value.
- Parameters
-
| offset | The point relative to the offset from which to being seeking. |
| origin | The reference point from which to begin seeking. |
- Returns
- The new position in the stream.
◆ SendMTFValues()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.SendMTFValues |
( |
| ) |
|
|
private |
◆ SetLength()
| override void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.SetLength |
( |
long | value | ) |
|
Sets the length of this stream to the given value.
- Parameters
-
| value | The new stream length. |
◆ SimpleSort()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.SimpleSort |
( |
int | lo, |
|
|
int | hi, |
|
|
int | d ) |
|
private |
◆ Vswap()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Vswap |
( |
int | p1, |
|
|
int | p2, |
|
|
int | n ) |
|
private |
◆ Write()
| override void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Write |
( |
byte[] | buffer, |
|
|
int | offset, |
|
|
int | count ) |
Write a block of bytes to the stream.
- Parameters
-
| buffer | The buffer containing data to write. |
| offset | The offset of the first byte to write. |
| count | The number of bytes to write. |
◆ WriteByte()
| override void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.WriteByte |
( |
byte | value | ) |
|
Write a byte to the stream.
- Parameters
-
| value | The byte to write to the stream. |
◆ WriteRun()
| void ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.WriteRun |
( |
| ) |
|
|
private |
Get the number of bytes written to output.
◆ allowableBlockSize
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.allowableBlockSize |
|
private |
◆ baseStream
| Stream ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.baseStream |
|
private |
◆ block
| byte [] ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.block |
|
private |
◆ blockCRC
| uint ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.blockCRC |
|
private |
◆ blockRandomised
| bool ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.blockRandomised |
|
private |
◆ blockSize100k
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.blockSize100k |
|
private |
◆ bsBuff
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.bsBuff |
|
private |
◆ bsLive
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.bsLive |
|
private |
◆ bytesOut
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.bytesOut |
|
private |
◆ CLEARMASK
| const int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.CLEARMASK = (~SETMASK) |
|
staticprivate |
◆ combinedCRC
| uint ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.combinedCRC |
|
private |
◆ currentChar
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.currentChar = -1 |
|
private |
◆ DEPTH_THRESH
| const int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.DEPTH_THRESH = 10 |
|
staticprivate |
◆ disposed_
| bool ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.disposed_ |
|
private |
◆ firstAttempt
| bool ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.firstAttempt |
|
private |
◆ ftab
| int [] ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.ftab |
|
private |
◆ GREATER_ICOST
| const int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.GREATER_ICOST = 15 |
|
staticprivate |
◆ increments
| readonly int [] ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.increments |
|
private |
Initial value:= new int[] {
1, 4, 13, 40, 121, 364, 1093, 3280,
9841, 29524, 88573, 265720,
797161, 2391484
}
◆ inUse
| bool [] ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.inUse = new bool[256] |
|
private |
◆ isStreamOwner
| bool ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.isStreamOwner = true |
|
private |
◆ last
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.last |
|
private |
◆ LESSER_ICOST
| const int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.LESSER_ICOST = 0 |
|
staticprivate |
◆ mCrc
◆ mtfFreq
◆ nBlocksRandomised
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.nBlocksRandomised |
|
private |
◆ nInUse
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.nInUse |
|
private |
◆ nMTF
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.nMTF |
|
private |
◆ origPtr
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.origPtr |
|
private |
◆ QSORT_STACK_SIZE
| const int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.QSORT_STACK_SIZE = 1000 |
|
staticprivate |
◆ quadrant
| int [] ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.quadrant |
|
private |
◆ runLength
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.runLength |
|
private |
◆ selector
◆ selectorMtf
◆ seqToUnseq
| char [] ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.seqToUnseq = new char[256] |
|
private |
◆ SETMASK
| const int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.SETMASK = (1 << 21) |
|
staticprivate |
◆ SMALL_THRESH
| const int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.SMALL_THRESH = 20 |
|
staticprivate |
◆ szptr
| short [] ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.szptr |
|
private |
◆ unseqToSeq
| char [] ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.unseqToSeq = new char[256] |
|
private |
◆ workDone
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.workDone |
|
private |
◆ workFactor
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.workFactor |
|
private |
◆ workLimit
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.workLimit |
|
private |
◆ zptr
| int [] ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.zptr |
|
private |
◆ BytesWritten
| int ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.BytesWritten |
|
get |
Get the number of bytes written to the output.
◆ CanRead
| override bool ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.CanRead |
|
get |
Gets a value indicating whether the current stream supports reading.
◆ CanSeek
| override bool ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.CanSeek |
|
get |
Gets a value indicating whether the current stream supports seeking.
◆ CanWrite
| override bool ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.CanWrite |
|
get |
Gets a value indicating whether the current stream supports writing.
◆ IsStreamOwner
| bool ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.IsStreamOwner |
|
getset |
Get/set flag indicating ownership of underlying stream. When the flag is true Close will close the underlying stream also.
◆ Length
| override long ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Length |
|
get |
Gets the length in bytes of the stream.
◆ Position
| override long ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Position |
|
getset |
Gets or sets the current position of this stream.
The documentation for this class was generated from the following file: