1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-16 02:50:24 +08:00

add v1 branch

This commit is contained in:
源文雨
2022-06-03 11:46:55 +08:00
parent 70a5125e48
commit 1cccc911ce
13 changed files with 127 additions and 1621 deletions

27
bitio.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef _BITIO_H_
#define _BITIO_H_
//bitio.h
//made by fumiama
//20200413
#include <stdio.h>
#include <string.h>
#ifndef BITBUFSIZE
#define BITBUFSIZE 1024
#endif
struct BIT{
char b[BITBUFSIZE];
int p;
};
typedef struct BIT BIT;
int pushbit(BIT *buffer, const int isture);
int fpushbit(BIT *buffer, FILE *fp);
int changebit(BIT *buffer, const int isture, const int position);
int readbit(const BIT *buffer, const int position);
int popbit(BIT *buffer);
#endif