chovy-sign/CHOVY-KIRK/tlzrc.h

34 lines
708 B
C

// Copyright (C) 2013 tpu
// Copyright (C) 2015 Hykem <hykem@hotmail.com>
// Licensed under the terms of the GNU GPL, version 3
// http://www.gnu.org/licenses/gpl-3.0.txt
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include "utils.h"
typedef struct {
u8 *input;
int in_ptr;
int in_len;
u8 *output;
int out_ptr;
int out_len;
u32 range;
u32 code;
u32 out_code;
u8 lc;
u8 bm_literal[8][256];
u8 bm_dist_bits[8][39];
u8 bm_dist[18][8];
u8 bm_match[8][8];
u8 bm_len[8][31];
} LZRC_DECODE;
__declspec(dllexport) int lzrc_compress(void *out, int out_len, void *in, int in_len);
__declspec(dllexport) int lzrc_decompress(void *out, int out_len, void *in, int in_len);