|
Fingerprint_Card
|
This class is general purpose class for writing data to a buffer. More...

Public Member Functions | |
| PendingBuffer () | |
| construct instance using default buffer size of 4096 | |
| PendingBuffer (int bufferSize) | |
| construct instance using specified buffer size | |
| void | Reset () |
| Clear internal state/buffers. | |
| void | WriteByte (int value) |
| Write a byte to buffer. | |
| void | WriteShort (int value) |
| Write a short value to buffer LSB first. | |
| void | WriteInt (int value) |
| write an integer LSB first | |
| void | WriteBlock (byte[] block, int offset, int length) |
| 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. | |
Properties | |
| int | BitCount [get] |
| The number of bits written to the buffer. | |
| bool | IsFlushed [get] |
| Indicates if buffer has been flushed. | |
Private Attributes | |
| byte[] | buffer_ |
| Internal work buffer. | |
| int | start |
| int | end |
| uint | bits |
| int | bitCount |
This class is general purpose class for writing data to a buffer.
It allows you to write bits as well as bytes Based on DeflaterPending.java
author of the original java version : Jochen Hoenicke
| ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.PendingBuffer | ( | ) |
construct instance using default buffer size of 4096
| ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.PendingBuffer | ( | int | bufferSize | ) |
construct instance using specified buffer size
| bufferSize | size to use for internal buffer |
| void ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.AlignToByte | ( | ) |
Align internal buffer on a byte boundary.
| int ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.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.
| output | The output array. |
| offset | The offset into output array. |
| length | The maximum number of bytes to store. |
| void ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.Reset | ( | ) |
Clear internal state/buffers.
| byte[] ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.ToByteArray | ( | ) |
Convert internal buffer to byte array. Buffer is empty on completion.
| void ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.WriteBits | ( | int | b, |
| int | count ) |
Write bits to internal buffer.
| b | source of bits |
| count | number of bits to write |
| void ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.WriteBlock | ( | byte[] | block, |
| int | offset, | ||
| int | length ) |
Write a block of data to buffer.
| block | data to write |
| offset | offset of first byte to write |
| length | number of bytes to write |
| void ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.WriteByte | ( | int | value | ) |
Write a byte to buffer.
| value | The value to write |
| void ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.WriteInt | ( | int | value | ) |
write an integer LSB first
| value | The value to write. |
| void ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.WriteShort | ( | int | value | ) |
Write a short value to buffer LSB first.
| value | The value to write. |
| void ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.WriteShortMSB | ( | int | s | ) |
Write a short value to internal buffer most significant byte first.
| s | value to write |
|
private |
|
private |
|
private |
Internal work buffer.
|
private |
|
private |
|
get |
The number of bits written to the buffer.
|
get |
Indicates if buffer has been flushed.