⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitio.h

📁 基于c的huffman的编码实现 该程序实现了经典的huffman算法 同时能够给出编码效率
💻 H
字号:

/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -