libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_compression.h File Reference

Go to the source code of this file.

Functions

int gblCompress (const void *pSrc, void *pDst, size_t srcSize, size_t dstCapacity, int compressionLevel)
 
int gblDecompress (const void *pSrc, void *pDst, size_t srcSize, size_t dstCapacity)
 

Detailed Description

Low-level compression API.

This file contains the lowest-level core API for compression and decompression. It operates on raw byte buffers.

Note
The underlying compression library and algorithm used by this API is LZ4.
Author
2023 Falco Girgis

Definition in file gimbal_compression.h.

Function Documentation

◆ gblCompress()

int gblCompress ( const void *  pSrc,
void *  pDst,
size_t  srcSize,
size_t  dstCapacity,
int  compressionLevel 
)

Compresses the source buffer into the sized destination buffer, returning its actual compressed size.

◆ gblDecompress()

int gblDecompress ( const void *  pSrc,
void *  pDst,
size_t  srcSize,
size_t  dstCapacity 
)

Decompresses the source buffer into the sized destination buffer, returning its actual decompressed size.