bitio.h
来自「基于c的huffman的编码实现 该程序实现了经典的huffman算法 同时」· C头文件 代码 · 共 44 行
H
44 行
/* bitio.h */
#ifndef _WIX_BITIO_H_01
#define _WIX_BITIO_H_01
#include <stdio.h>
typedef struct bit_file
{
FILE* file;
unsigned char mask;
int rack;
int pacifier_counter;
}BIT_FILE;
BIT_FILE* OpenInputBitFile( char* name );
BIT_FILE* OpenOutputBitFile( char* name );
void OutputBit( BIT_FILE* bit_file, int bit );
void OutputBits( BIT_FILE* bit_file, unsigned long code, int count);
int InputBit( BIT_FILE* bit_file );
unsigned long InputBits( BIT_FILE* bit_file, int bit_count );
void CloseInputBitFile( BIT_FILE* bit_file );
void CloseOutputBitFile( BIT_FILE* bit_file );
void FilePrintBinary( FILE* file, unsigned int code, int bits );
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?