SoDataCompressor Class |
Data compression.
Namespace: OIV.LDM.Compressors
The SoDataCompressor type exposes the following members.
Name | Description | |
---|---|---|
AllocateCompressedBuffer | Allocates the internal buffer to hold the compressed data. | |
Compress | Compresses the given buffer into the internal buffer. | |
Crc32 | Utility function to get the CRC32 of a buffer. | |
Equals | (Inherited from Object.) | |
GetAppropriateCompressor | Create and return an instance of a compressor of the given type. | |
GetCompressedBuffer | Returns the compressed data. | |
GetCompressionFormatName | Returns the name of the compression algorithm used by this class. | |
GetCompressionLevel | Returns the compression level. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsLossless | Returns true if the compression algorithm is lossless. | |
SetCompressionLevel | Sets the compression level. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Uncompress | Uncompresses data from the internal buffer to the given buffer. |
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.