Lhaz
|
#include "altstr.hpp"
#include <stdlib.h>
#include "myfile.h"
#include "chuf.h"
#include "lhazlzh.h"
マクロ定義 | |
#define | LHAZ_BUF_SIZE (8192 * 2) |
#define | USHRT_BIT 16 /* (CHAR_BIT * sizeof(ushort)) */ |
#define | UPDATE_CRC(d, c) (d) = (unsigned short)(crctable[((d) ^ (c)) & 0xFF] ^ ((d) >> CHAR_BIT)) |
#define | CRCPOLY 0xA001 /* CRC-16 */ |
関数 | |
void | calccrc (ushort &crc, uchar *p, uint n) |
uchar | lhaz_get (MYFILE &fp) |
void | lhaz_encode_init (int, FILE *) |
int | fread_crc (uchar *p, int n, MYFILE &fp) |
void | init_putbits () |
ushort | calc_header_crc (uchar *p, uint n) |
void | MakeCrcTable (void) |
変数 | |
unsigned short | crctable [UCHAR_MAX+1] |
ushort | bitbuf |
uchar * | lhaz_buf |
ULONGLONG | lhaz_p = LHAZ_BUF_SIZE |
ULONGLONG | lhaz_buf_size |
ushort | lzh_crc |
#define CRCPOLY 0xA001 /* CRC-16 */ |
#define LHAZ_BUF_SIZE (8192 * 2) |
#define UPDATE_CRC | ( | d, | |
c | |||
) | (d) = (unsigned short)(crctable[((d) ^ (c)) & 0xFF] ^ ((d) >> CHAR_BIT)) |
#define USHRT_BIT 16 /* (CHAR_BIT * sizeof(ushort)) */ |
int fread_crc | ( | uchar * | p, |
int | n, | ||
MYFILE & | fp | ||
) |
void init_putbits | ( | ) |
void lhaz_encode_init | ( | int | , |
FILE * | |||
) |
uchar lhaz_get | ( | MYFILE & | fp | ) |
void MakeCrcTable | ( | void | ) |
ushort bitbuf |
unsigned short crctable[UCHAR_MAX+1] |
uchar* lhaz_buf |
ULONGLONG lhaz_buf_size |
ULONGLONG lhaz_p = LHAZ_BUF_SIZE |
ushort lzh_crc |