Click or drag to resize

PatternCompressor Class

Defines functions used for high-speed pattern compression against native types.
Inheritance Hierarchy
SystemObject
  GSF.IO.CompressionPatternCompressor

Namespace: GSF.IO.Compression
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public class PatternCompressor
View Source

The PatternCompressor type exposes the following members.

Constructors
 NameDescription
Public methodPatternCompressor Creates a new instance of the PatternCompressor with the given compression strength.
Top
Properties
 NameDescription
Public propertyCompressedBuffer Gets or sets the buffer into which compressed values are written.
Public propertyCompressedBufferLength Gets the amount of compressed data in the compressed buffer.
Public propertyCompressionStrength Gets or sets the compression strength of the PatternCompressor.
Public propertyMaxCompressedBufferLength Gets or sets the maximum compressed buffer length.
Top
Methods
 NameDescription
Public methodCompress(Byte) Compresses the given value and places it in the compressed buffer.
Public methodCompress(Byte) Compresses all of the data in the given buffer.
Public methodCompress(Double) Compresses the given value and places it in the compressed buffer.
Public methodCompress(Int16) Compresses the given value and places it in the compressed buffer.
Public methodCompress(Int32) Compresses the given value and places it in the compressed buffer.
Public methodCompress(Int64) Compresses the given value and places it in the compressed buffer.
Public methodCompress(ISupportBinaryImage) Compresses the given value and places it in the compressed buffer.
Public methodCompress(Single) Compresses the given value and places it in the compressed buffer.
Public methodCompress(UInt16) Compresses the given value and places it in the compressed buffer.
Public methodCompress(UInt32) Compresses the given value and places it in the compressed buffer.
Public methodCompress(UInt64) Compresses the given value and places it in the compressed buffer.
Public methodCompress(Byte, Int32) Compresses length bytes of data in the given buffer.
Public methodCompress(Byte, Int32, Int32) Compresses length bytes of data in the given buffer, starting at offset.
Public methodStatic memberCompressBuffer Compress a byte array containing a sequential list of 32-bit structures (e.g., floating point numbers, integers or unsigned integers) using a patterned compression method.
Public methodEmptyCompressedBuffer Sets CompressedBufferLength to zero and allows the compressor to write over the values in the compressed buffer.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReset Resets the compressor by flushing the back buffer. Subsequent calls to the Compress methods will not be compressed using previously compressed values.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also