Inheritance diagram for ICSharpCode::SharpZipLib::Zip::Compression::PendingBuffer:
Public Member Functions | |
PendingBuffer () | |
construct instance using default buffer size of 4096 | |
PendingBuffer (int bufsize) | |
construct instance using specified buffer size | |
void | Reset () |
Clear internal state/buffers. | |
void | WriteByte (int b) |
write a byte to buffer | |
void | WriteShort (int s) |
Write a short value to buffer LSB first. | |
void | WriteInt (int s) |
write an integer LSB first | |
void | WriteBlock (byte[] block, int offset, int len) |
Write a block of data to buffer. | |
void | AlignToByte () |
Align internal buffer on a byte boundary. | |
void | WriteBits (int b, int count) |
Write bits to internal buffer. | |
void | WriteShortMSB (int s) |
Write a short value to internal buffer most significant byte first. | |
int | Flush (byte[] output, int offset, int length) |
Flushes the pending buffer into the given output array. If the output array is to small, only a partial flush is done. | |
byte[] | ToByteArray () |
Convert internal buffer to byte array. Buffer is empty on completion. | |
Protected Attributes | |
byte[] | buf |
Internal work buffer. | |
Properties | |
int | BitCount |
The number of bits written to the buffer. | |
bool | IsFlushed |
Indicates if buffer has been flushed. | |
Private Attributes | |
int | start |
int | end |
uint | bits |
int | bitCount |
It allows you to write bits as well as bytes Based on DeflaterPending.java
author of the original java version : Jochen Hoenicke
Definition at line 53 of file PendingBuffer.cs.
|
construct instance using default buffer size of 4096
Definition at line 68 of file PendingBuffer.cs. |
|
construct instance using specified buffer size
Definition at line 79 of file PendingBuffer.cs. |
|
Align internal buffer on a byte boundary.
Definition at line 163 of file PendingBuffer.cs. |
|
Flushes the pending buffer into the given output array. If the output array is to small, only a partial flush is done.
Definition at line 239 of file PendingBuffer.cs. |
|
Clear internal state/buffers.
Definition at line 87 of file PendingBuffer.cs. |
|
Convert internal buffer to byte array. Buffer is empty on completion.
Definition at line 265 of file PendingBuffer.cs. |
|
Write bits to internal buffer.
Definition at line 183 of file PendingBuffer.cs. Referenced by ICSharpCode::SharpZipLib::Zip::Compression::DeflaterHuffman::Tree::WriteSymbol(). |
|
Write a block of data to buffer.
Definition at line 142 of file PendingBuffer.cs. |
|
write a byte to buffer
Definition at line 98 of file PendingBuffer.cs. |
|
write an integer LSB first
Definition at line 125 of file PendingBuffer.cs. |
|
Write a short value to buffer LSB first.
Definition at line 112 of file PendingBuffer.cs. |
|
Write a short value to internal buffer most significant byte first.
Definition at line 205 of file PendingBuffer.cs. |
|
Definition at line 63 of file PendingBuffer.cs. |
|
Definition at line 62 of file PendingBuffer.cs. |
|
Internal work buffer.
Definition at line 57 of file PendingBuffer.cs. |
|
Definition at line 60 of file PendingBuffer.cs. |
|
Definition at line 59 of file PendingBuffer.cs. |
|
The number of bits written to the buffer.
Definition at line 154 of file PendingBuffer.cs. |
|
Indicates if buffer has been flushed.
Definition at line 217 of file PendingBuffer.cs. |