IndividualEncodingBaseT Class

Represents the base class for individual value encoding strategies that allow compressing of a single value.

Definition

Namespace: SnapDB.Snap.Encoding
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public abstract class IndividualEncodingBase<T>
Inheritance
Object    IndividualEncodingBaseT

Type Parameters

T
The type of values to encode.

Constructors

IndividualEncodingBaseTInitializes a new instance of the IndividualEncodingBaseT class

Properties

ContainsEndOfStreamSymbol Gets a value indicating whether this encoding contains an end-of-stream symbol.
EndOfStreamSymbol Gets the byte value representing the end-of-stream symbol if applicable. May throw NotSupportedException if ContainsEndOfStreamSymbol is false.
MaxCompressionSize Gets the maximum amount of space required by the compression algorithm.
UsesPreviousValue Gets a value indicating whether this encoding strategy uses the previous value for encoding.

Methods

Clone Clones this encoding method.
Decode(BinaryStreamBase, T, T, Boolean) Decodes value from the specified binary stream.
Decode(Byte*, T, T, Boolean) Decodes value from the specified memory stream, returning the decoded data length.
Encode(BinaryStreamBase, T, T) Encodes value and writes it to the specified binary stream.
Encode(Byte*, T, T) Encodes value and writes it to the specified memory stream, returning the encoded data length.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also