Platforms to show: All Mac Windows Linux Cross-Platform
Back to ZLibDecompressMBS class.
ZLibDecompressMBS.Adler32(start as UInt32, data as string) as UInt32
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 4.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Set start to 0 for the first call.
Later you can pass the result as the new start value to add data to your checksum.
This function is part of the zlib library and given as a free utility function to this class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 3.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
ZLibDecompressMBS.Constructor(BufferPtr as Ptr, BufferSize as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
For advanced users who use declares to preallocate the output buffer.
Stores Ptr in OutputPtr property for later access.
See also:
ZLibDecompressMBS.Constructor(BufferSize as Integer=20000)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 9.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The buffer size you specify is the output buffer size.
If this size is small, you need to flush with ProcessZip.
See also:
ZLibDecompressMBS.CRC32(start as UInt32, data as string) as UInt32
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 4.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Set start to 0 for the first call.
Later you can pass the result as the new start value to add data to your checksum.
This function is part of the zlib library and given as a free utility function to this class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You may check the Output property after this.
Error is set.
ZLibDecompressMBS.GetOutput as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The buffer is cleared after this function returns.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Error is set.
ZLibDecompressMBS.InputAvail as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
ZLibDecompressMBS.OutputSize as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
ZLibDecompressMBS.ProcessZip(Flush as boolean=false)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Reduces the size of the input buffer and writes new data to the output buffer.
If the input buffer is not "" after this call, you need to call it again, but empty the output buffer before.
Error is set.
If flush is true, the data is flushed to output. Using flush=true all the the time will slow down compression, so use it only on the end to clear the output buffers.
ZLibDecompressMBS.SetInput(data as Memoryblock) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 13.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if successfull.
Returns false if size is <= 0.
The data is read directly from the Memoryblock and the plugin keeps a reference until destructor runs or you set a new input data.
See also:
ZLibDecompressMBS.SetInput(data as ptr, Size as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if successfull.
Returns false if Size is <= 0.
The data is read directly from the Ptr and you need to keep reference to the memory and prevent it from being released too early.
See also:
ZLibDecompressMBS.SetInput(data as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Compression | MBS Compression Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if successfull.
Returns false if length is <= 0.
The data is read directly from the String and the plugin keeps a reference until destructor runs or you set a new input data.
See also:
The items on this page are in the following plugins: MBS Compression Plugin.