mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
Update psputilsforkernel.h
Updated fourth argument of decompression routines. When not NULL, the routines will store a pointer to the next unprocessed compressed byte (src + n_compressed_bytes_processed). This can be useful to implement stream-based decompression, calculating number of processed compressed bytes, etc.
This commit is contained in:
committed by
Wouter Wijsman
parent
8f659bd2d7
commit
6d00b425f9
@@ -23,10 +23,10 @@ extern "C" {
|
||||
* @param dest - pointer to destination buffer
|
||||
* @param destSize - size of destination buffer
|
||||
* @param src - pointer to source (compressed) data
|
||||
* @param unknown - unknown, pass NULL
|
||||
* @param src_out - if not NULL, it will store the pointer to src + compressed_bytes_processed
|
||||
* @return size decompressed on success, < 0 on error
|
||||
*/
|
||||
int sceKernelGzipDecompress(u8 *dest, u32 destSize, const u8 *src, u32 unknown);
|
||||
int sceKernelGzipDecompress(u8 *dest, u32 destSize, const u8 *src, u8** src_out);
|
||||
|
||||
/**
|
||||
* Decompress deflate'd data (requires kernel mode)
|
||||
@@ -34,10 +34,10 @@ int sceKernelGzipDecompress(u8 *dest, u32 destSize, const u8 *src, u32 unknown);
|
||||
* @param dest - pointer to destination buffer
|
||||
* @param destSize - size of destination buffer
|
||||
* @param src - pointer to source (compressed) data
|
||||
* @param unknown - unknown, pass NULL
|
||||
* @param src_out - if not NULL, it will store the pointer to src + compressed_bytes_processed
|
||||
* @return size decompressed on success, < 0 on error
|
||||
*/
|
||||
int sceKernelDeflateDecompress(u8 *dest, u32 destSize, const u8 *src, u32 unknown);
|
||||
int sceKernelDeflateDecompress(u8 *dest, u32 destSize, const u8 *src, u8** src_out);
|
||||
|
||||
/**
|
||||
* Invalidate the entire data cache
|
||||
|
Reference in New Issue
Block a user