FreeImage.ZLibUncompress Method

FreeImage.NET

FreeImageZLibUncompress Method
Decompresses a source buffer into a target buffer, using the ZLib library.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static uint ZLibUncompress(
	byte[] target,
	uint target_size,
	byte[] source,
	uint source_size
)

Parameters

target
Type: SystemByte
Pointer to the target buffer.
target_size
Type: SystemUInt32
Size of the target buffer. Must have been saved outlide of zlib.
source
Type: SystemByte
Pointer to the source buffer.
source_size
Type: SystemUInt32
Size of the source buffer.

Return Value

Type: UInt32
The actual size of the uncompressed buffer, or 0 if an error occurred.
See Also