Top Description Inners Constructors Methods
org.lwjgl.stb

public abstract Class STBIZlibCompress

extends Callback
implements STBIZlibCompressI
Class Inheritance
All Implemented Interfaces
org.lwjgl.stb.STBIZlibCompressI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.stb.STBIZlibCompress.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be set to STBImageWrite#stbi_zlib_compress.

Type


unsigned char * (*invoke) (
    unsigned char *data,
    int data_len,
    int *out_len,
    int quality
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
STBIZlibCompress(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static STBIZlibCompress

Returns:

the new STBIZlibCompress
create
(long functionPointer)

Creates a STBIZlibCompress instance from the specified function pointer.

public static STBIZlibCompress
create(STBIZlibCompressI instance)

Creates a STBIZlibCompress instance that delegates to the specified STBIZlibCompressI instance.

public static STBIZlibCompress
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

STBIZlibCompressback to summary
protected STBIZlibCompress()
STBIZlibCompressback to summary
pack-priv STBIZlibCompress(long functionPointer)

Method Detail

createback to summary
public static STBIZlibCompress create(long functionPointer)

Creates a STBIZlibCompress instance from the specified function pointer.

Returns:STBIZlibCompress

the new STBIZlibCompress

createback to summary
public static STBIZlibCompress create(STBIZlibCompressI instance)

Creates a STBIZlibCompress instance that delegates to the specified STBIZlibCompressI instance.

createSafeback to summary
public static STBIZlibCompress createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.stb back to summary

private final Class STBIZlibCompress.Container

extends STBIZlibCompress
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final STBIZlibCompressI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, STBIZlibCompressI delegate)

Method Summary

Modifier and TypeMethod and Description
public long
invoke(long
the data to compress
data
,
int
the data length, in bytes
data_len
,
long
returns the compressed data length, in bytes
out_len
,
int
the compression quality to use
quality
)

Implements org.lwjgl.stb.STBIZlibCompressI.invoke.

Compresses a block of data using Zlib compression.
Inherited from org.lwjgl.stb.STBIZlibCompress:
createcreatecreateSafe

Field Detail

delegateback to summary
private final STBIZlibCompressI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, STBIZlibCompressI delegate)

Method Detail

invokeback to summary
public long invoke(long data, int data_len, long out_len, int quality)

Implements org.lwjgl.stb.STBIZlibCompressI.invoke.

Doc from org.lwjgl.stb.STBIZlibCompressI.invoke.

Compresses a block of data using Zlib compression.

The returned data will be freed with MemoryUtil#memFree so it must be heap allocated with MemoryUtil#memAlloc.

Parameters
data:long

the data to compress

data_len:int

the data length, in bytes

out_len:long

returns the compressed data length, in bytes

quality:int

the compression quality to use

Returns:long

the compressed data

Annotations
@Override