Click or drag to resize
SoDataCompressor Class

Data compression.

Inheritance Hierarchy

Namespace: OIV.LDM.Compressors
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public class SoDataCompressor : SoNetBase

The SoDataCompressor type exposes the following members.

Methods
  NameDescription
Public methodAllocateCompressedBuffer

Allocates the internal buffer to hold the compressed data.

Public methodCompress

Compresses the given buffer into the internal buffer.

Public methodStatic memberCrc32

Utility function to get the CRC32 of a buffer.

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberGetAppropriateCompressor

Create and return an instance of a compressor of the given type.

Public methodGetCompressedBuffer

Returns the compressed data.

Public methodGetCompressionFormatName

Returns the name of the compression algorithm used by this class.

Public methodGetCompressionLevel

Returns the compression level.

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsLossless

Returns true if the compression algorithm is lossless.

Public methodSetCompressionLevel

Sets the compression level.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUncompress

Uncompresses data from the internal buffer to the given buffer.

Top
Remarks

This is an abstract class which is only needed for advanced users who intend to add a new LDM data compression technique.

By implementing each virtual method of this class, it is possible to create a new compression algorithm. As with a custom node, the initClass of the custom compressor must be called before creating and instantiating an instance of the custom class. After you call initClass, the compression algorithm will be available in the '-c' option of OIV.LDM.Converters.SoConverter.

See Also