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

📄 bitio.h

📁 huffman算法 包含huffman算法的编码及解码源程序以及LZW算法的编解码
💻 H
字号:
#ifndef _BITIO_H
#define _BITIO_H

#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 + -