StreamManipulator Members

SharpZip Compression Library

SharpZip Compression Library

StreamManipulator Members

StreamManipulator overview

Public Instance Constructors

StreamManipulator Constructor Constructs a default StreamManipulator with all buffers empty

Public Instance Properties

AvailableBits Gets the number of bits available in the bit buffer. This must be only called when a previous PeekBits() returned -1.
AvailableBytes Gets the number of bytes available.
IsNeedingInput Returns true when SetInput can be called

Public Instance Methods

CopyBytes Copies length bytes from input buffer to output buffer starting at output[offset]. You have to make sure, that the buffer is byte aligned. If not enough bytes are available, copies fewer bytes.
DropBits Drops the next n bits from the input. You should have called PeekBits with a bigger or equal n before, to make sure that enough bits are in the bit buffer.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetBits Gets the next n bits and increases input pointer. This is equivalent to PeekBits followed by dropBits, except for correct error handling.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
PeekBits Get the next n bits but don't increase input pointer. n must be less or equal 16 and if this call succeeds, you must drop at least n - 8 bits in the next call.
Reset resets state and empties internal buffers
SetInput Add more input for consumption. Only call when IsNeedingInput returns true
SkipToByteBoundary Skips to the next byte boundary.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

StreamManipulator Class | ICSharpCode.SharpZipLib.Zip.Compression.Streams Namespace