LibT2FS 0.1
C API for accessing TEngine data in memory.
Loading...
Searching...
No Matches
rnc.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  s_rncHuftable
struct  s_rnc

Macros

#define RNC_SIGN   0x524E43
#define RNC_HEADER_SIZE   0x12

Typedefs

typedef enum e_RNCStatus RNCStatus
typedef struct s_rncHuftable t_rncHuftable
typedef struct s_rnc t_rnc

Enumerations

enum  e_RNCStatus {
  RNC_OK = 0 , RNC_ERR_INPUT = 4 , RNC_ERR_CRC = 5 , RNC_ERR_HEADER = 6 ,
  RNC_ERR_NEED_KEY = 10 , RNC_ERR_EOMEM = 16
}

Functions

RNCStatus rnc_init (t_rnc *rnc)
void rnc_free (t_rnc *rnc)
void rnc_set_be (t_rnc *rnc)
RNCStatus rnc_decompress_buf (t_rnc *rnc, uint8_t *const input, const size_t input_size, uint8_t **outbuf, size_t *outbufSize)

Macro Definition Documentation

◆ RNC_SIGN

#define RNC_SIGN   0x524E43

◆ RNC_HEADER_SIZE

#define RNC_HEADER_SIZE   0x12

Typedef Documentation

◆ RNCStatus

typedef enum e_RNCStatus RNCStatus

◆ t_rncHuftable

typedef struct s_rncHuftable t_rncHuftable

◆ t_rnc

typedef struct s_rnc t_rnc

Enumeration Type Documentation

◆ e_RNCStatus

Enumerator
RNC_OK 
RNC_ERR_INPUT 
RNC_ERR_CRC 
RNC_ERR_HEADER 
RNC_ERR_NEED_KEY 
RNC_ERR_EOMEM 

Function Documentation

◆ rnc_init()

RNCStatus rnc_init ( t_rnc * rnc)

◆ rnc_free()

void rnc_free ( t_rnc * rnc)

◆ rnc_set_be()

void rnc_set_be ( t_rnc * rnc)

◆ rnc_decompress_buf()

RNCStatus rnc_decompress_buf ( t_rnc * rnc,
uint8_t *const input,
const size_t input_size,
uint8_t ** outbuf,
size_t * outbufSize )