2024-04-05 17:51:19 +02:00
|
|
|
#ifndef RTECH_PAKDECODE_H
|
|
|
|
#define RTECH_PAKDECODE_H
|
|
|
|
#include "rtech/ipakfile.h"
|
|
|
|
|
2024-04-11 02:19:36 +02:00
|
|
|
extern size_t Pak_InitDecoder(PakDecoder_s* const decoder, const uint8_t* const inputBuf, uint8_t* const outputBuf,
|
2024-01-28 01:57:11 +01:00
|
|
|
const uint64_t inputMask, const uint64_t outputMask, const size_t dataSize, const size_t dataOffset,
|
2024-04-11 02:19:36 +02:00
|
|
|
const size_t headerSize, const PakDecodeMode_e decodeMode);
|
2024-01-24 23:49:30 +01:00
|
|
|
|
2024-04-11 02:19:36 +02:00
|
|
|
extern bool Pak_StreamToBufferDecode(PakDecoder_s* const decoder, const size_t inLen, const size_t outLen, const PakDecodeMode_e decodeMode);
|
|
|
|
extern bool Pak_BufferToBufferDecode(uint8_t* const inBuf, uint8_t* const outBuf, const size_t pakSize, const PakDecodeMode_e decodeMode);
|
2024-01-28 18:15:19 +01:00
|
|
|
|
|
|
|
extern bool Pak_DecodePakFile(const char* const inPakFile, const char* const outPakFile);
|
2024-04-05 17:51:19 +02:00
|
|
|
|
|
|
|
#endif // RTECH_PAKDECODE_H
|