bit.h
来自「“wavelet”目录中存放的是API函数源程序 “wavelet_gui”目」· C头文件 代码 · 共 37 行
H
37 行
#ifndef _BIT_H_INCLUDED
#define _BIT_H_INCLUDED
#include <stdio.h>
#ifdef WAVELET_DLL
#define WAVELET_DLL_API __declspec(dllexport)
#define WAVELET_DLL_CC
#else
#define WAVELET_DLL_API
#define WAVELET_DLL_CC
#endif
#pragma pack(push, 1)
typedef struct
{
FILE* file;
unsigned char* buffer;
int idx;
int mask;
int bufsize;
int bufleft;
int bits_left;
char mode[2];
} t_bit_file;
#pragma pack(pop)
WAVELET_DLL_API t_bit_file* WAVELET_DLL_CC bit_open(char* name,
const char *mode, const int mem_size);
WAVELET_DLL_API int WAVELET_DLL_CC bit_close(t_bit_file* f, unsigned char** mem);
WAVELET_DLL_API int WAVELET_DLL_CC bit_read(const int num, t_bit_file* f);
WAVELET_DLL_API int WAVELET_DLL_CC bit_write(const int bits, const int num, t_bit_file* f);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?