Shared Cache is high performance distributed and replication cache system built for .Net applications running in server farms.

The StreamManipulator type exposes the following members.

Constructors

  NameDescription
StreamManipulator
Constructs a default StreamManipulator with all buffers empty

Methods

  NameDescription
CopyBytes
Copies 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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetBits
Gets the next n bits and increases input pointer. This is equivalent to PeekBits(Int32) followed by DropBits(Int32), except for correct error handling.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
PeekBits
Get the next sequence of bits but don't increase input pointer. bitCount 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
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
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

See Also