mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Allows paks compressed with ZSTD, to be stream decoded at run time. Currently seems to work pretty good, but needs to be further battle tested + cleaned up still.
14 lines
657 B
C
14 lines
657 B
C
#ifndef RTECH_PAKDECODE_H
|
|
#define RTECH_PAKDECODE_H
|
|
#include "rtech/ipakfile.h"
|
|
|
|
extern size_t Pak_InitDefaultDecoder(PakDecoder_t* const decoder, const uint8_t* const fileBuffer,
|
|
const uint64_t inputMask, const size_t dataSize, const size_t dataOffset, const size_t headerSize);
|
|
|
|
extern size_t Pak_InitDecoder(PakDecoder_t* const decoder, const uint8_t* const fileBuffer,
|
|
const uint64_t inputMask, const size_t dataSize, const size_t dataOffset, const size_t headerSize, const bool useCustom);
|
|
|
|
extern bool Pak_StreamToBufferDecode(PakDecoder_t* const decoder, const size_t inLen, const size_t outLen, const bool useCustom);
|
|
|
|
#endif // RTECH_PAKDECODE_H
|