Platforms to show: All Mac Windows Linux Cross-Platform
Back to LZ4MBS module.
LZ4MBS.Compress(InputData as MemoryBlock) as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception on failure (OutOfMemoryException or UnsupportedOperationException) and returns string on success.
See also:
LZ4MBS.Compress(InputData as Ptr, Size as Integer) as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as memoryblock version, but with ptr parameter, so you can pass ptr with size.
Works also for passing memoryblocks and a custom size.
See also:
LZ4MBS.Compress(InputData as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception on failure (OutOfMemoryException or UnsupportedOperationException) and returns string on success.
See also:
LZ4MBS.CompressFast(InputData as MemoryBlock, Acceleration as Integer = 1) as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception on failure (OutOfMemoryException or UnsupportedOperationException) and returns string on success.
Same as Compress(), but allows selection of "acceleration" factor.
The larger the acceleration value, the faster the algorithm, but also the lesser the compression.
It's a trade-off. It can be fine tuned, with each successive value providing roughly +~3% to speed.
An acceleration value of "1" is the same as regular Compress()
Values <= 0 will be replaced by AccelerationDefault (currently = 1).
See also:
LZ4MBS.CompressFast(InputData as Ptr, Size as Integer, Acceleration as Integer = 1) as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as memoryblock version, but with ptr parameter, so you can pass ptr with size.
Works also for passing memoryblocks and a custom size.
See also:
LZ4MBS.CompressFast(InputData as string, Acceleration as Integer = 1) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception on failure (OutOfMemoryException or UnsupportedOperationException) and returns string on success.
Same as Compress(), but allows selection of "acceleration" factor.
The larger the acceleration value, the faster the algorithm, but also the lesser the compression.
It's a trade-off. It can be fine tuned, with each successive value providing roughly +~3% to speed.
An acceleration value of "1" is the same as regular Compress()
Values <= 0 will be replaced by AccelerationDefault (currently = 1).
See also:
LZ4MBS.CompressHC(InputData as MemoryBlock, compressionLevel as Integer = 9) as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception on failure (OutOfMemoryException or UnsupportedOperationException) and returns string on success.
Compression level, with # being any value from 1 to 12. Higher values trade compression speed for compression ratio. Values above 12 are considered the same as 12. Recommended values are 1 for fast compression (default), and 9 for high compression. Speed/compression trade-off will vary depending on data to compress\. Decompression speed remains fast at all settings.
See also:
LZ4MBS.CompressHC(InputData as Ptr, Size as Integer, compressionLevel as Integer = 9) as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as memoryblock version, but with ptr parameter, so you can pass ptr with size.
Works also for passing memoryblocks and a custom size.
See also:
LZ4MBS.CompressHC(InputData as string, compressionLevel as Integer = 9) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception on failure (OutOfMemoryException or UnsupportedOperationException) and returns string on success.
Compression level, with # being any value from 1 to 12. Higher values trade compression speed for compression ratio. Values above 12 are considered the same as 12. Recommended values are 1 for fast compression (default), and 9 for high compression. Speed/compression trade-off will vary depending on data to compress\. Decompression speed remains fast at all settings.
See also:
LZ4MBS.Decompress(CompressedData as MemoryBlock, UncompressedSize as Integer = 0) as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception on failure (OutOfMemoryException or UnsupportedOperationException) and returns memoryblock on success.
If UncompressedSize is zero, we try to determinate it.
If you know the size of decompressed data, please pass it to make function more efficient.
See also:
LZ4MBS.Decompress(CompressedData as Ptr, Size as Integer, UncompressedSize as Integer = 0) as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as memoryblock version, but with ptr parameter, so you can pass ptr with size.
Works also for passing memoryblocks and a custom size.
If UncompressedSize is zero, we try to determinate it.
If you know the size of decompressed data, please pass it to make function more efficient.
See also:
LZ4MBS.Decompress(CompressedData as string, UncompressedSize as Integer = 0) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception on failure (OutOfMemoryException or UnsupportedOperationException) and returns memoryblock on success.
If UncompressedSize is zero, we try to determinate it.
If you know the size of decompressed data, please pass it to make function more efficient.
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 19.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The items on this page are in the following plugins: MBS Compression Plugin.