Moved from AliTransbit to AliL3Transbit.
[u/mrichter/AliRoot.git] / HLT / comp / bitio.h
CommitLineData
f92ad96b 1/************************** Start of BITIO.H *************************/
2
3#ifndef _BITIO_H
4#define _BITIO_H
5
6#include <stdio.h>
7
8typedef struct bit_file {
9 FILE *file;
10 unsigned char mask;
11 int rack;
12 int pacifier_counter;
13} BIT_FILE;
14
15//#ifdef __STDC__
16
17BIT_FILE *OpenInputBitFile( char *name );
18BIT_FILE *OpenOutputBitFile( char *name );
19void OutputBit( BIT_FILE *bit_file, int bit );
20void OutputBits( BIT_FILE *bit_file,
21 unsigned long code, int count );
22int InputBit( BIT_FILE *bit_file );
23unsigned long InputBits( BIT_FILE *bit_file, int bit_count );
24void CloseInputBitFile( BIT_FILE *bit_file );
25void CloseOutputBitFile( BIT_FILE *bit_file );
26void FilePrintBinary( FILE *file, unsigned int code, int bits );
27/*
28#else
29
30BIT_FILE *OpenInputBitFile();
31BIT_FILE *OpenOutputBitFile();
32void OutputBit();
33void OutputBits();
34int InputBit();
35unsigned long InputBits();
36void CloseInputBitFile();
37void CloseOutputBitFile();
38void FilePrintBinary();
39
40#endif
41*/
42#endif /* _BITIO_H */
43
44/*************************** End of BITIO.H **************************/
45
8f2aba92 46