@FunctionalInterface
public interface STBIZlibCompressI
extends org.lwjgl.system.CallbackI.P
STBImageWrite.stbi_zlib_compress.
unsigned char * (*) (
unsigned char *data,
int data_len,
int *out_len,
int quality
)org.lwjgl.system.CallbackI.B, org.lwjgl.system.CallbackI.D, org.lwjgl.system.CallbackI.F, org.lwjgl.system.CallbackI.I, org.lwjgl.system.CallbackI.J, org.lwjgl.system.CallbackI.N, org.lwjgl.system.CallbackI.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.Z| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SIGNATURE |
| Modifier and Type | Method and Description |
|---|---|
default long |
callback(long args) |
default java.lang.String |
getSignature() |
long |
invoke(long data,
int data_len,
long out_len,
int quality)
Compresses a block of data using Zlib compression.
|
static final java.lang.String SIGNATURE
default java.lang.String getSignature()
getSignature in interface org.lwjgl.system.CallbackIdefault long callback(long args)
callback in interface org.lwjgl.system.CallbackI.Plong invoke(long data,
int data_len,
long out_len,
int quality)
The returned data will be freed with MemoryUtil.memFree(java.nio.Buffer) so it must be heap allocated with MemoryUtil.memAlloc(int).
data - the data to compressdata_len - the data length, in bytesout_len - returns the compressed data length, in bytesquality - the compression quality to useCopyright LWJGL. All Rights Reserved. License terms.