BF_MODES mode
Definition: bitfile.c:78
int BitFilePutBits(bit_file_t *stream, void *bits, const unsigned int count)
This function writes the specified number of bits from the memory location passed as a parameter to t...
Definition: bitfile.c:812
int BitFileGetBit(bit_file_t *stream)
This function returns the next bit from the file passed as a parameter.
Definition: bitfile.c:625
int BitFileGetBitsNum(bit_file_t *stream, void *bits, const unsigned int count, const size_t size)
This function provides a machine independent layer that allows a single function call to stuff an arb...
Definition: bitfile.c:887
bit_file_t * BitFileOpen(const char *fileName, const BF_MODES mode)
This function opens a bit file for reading, writing, or appending.
Definition: bitfile.c:147
bit_file_t * MakeBitFile(FILE *stream, const BF_MODES mode)
This function naively wraps a standard file in a bit_file_t structure.
Definition: bitfile.c:229
int BitFileGetChar(bit_file_t *stream)
This function returns the next byte from the file passed as a parameter.
Definition: bitfile.c:525
int BitFileByteAlign(bit_file_t *stream)
This function aligns the bitfile to the nearest byte.
Definition: bitfile.c:433
BF_MODES
This is an enumeration of the bit file modes (read, write, and append)
Definition: bitfile.h:81
int BitFileClose(bit_file_t *stream)
This function closes a bit file and frees all associated data.
Definition: bitfile.c:336
int BitFilePutBit(const int c, bit_file_t *stream)
This function writes the bit passed as a parameter to the file passed a parameter.
Definition: bitfile.c:672
int BitFilePutChar(const int c, bit_file_t *stream)
This function writes the byte passed as a parameter to the file passed a parameter.
Definition: bitfile.c:576
int BitFileGetBits(bit_file_t *stream, void *bits, const unsigned int count)
This function reads the specified number of bits from the file passed as a parameter.
Definition: bitfile.c:730
FILE * BitFileToFILE(bit_file_t *stream)
This function flushes and frees the bitfile structure, returning a pointer to a stdio file correspond...
Definition: bitfile.c:382
int BitFilePutBitsNum(bit_file_t *stream, void *bits, const unsigned int count, const size_t size)
This function provides a machine independent layer that allows a single function call to write an arb...
Definition: bitfile.c:1084
int BitFileFlushOutput(bit_file_t *stream, const unsigned char onesFill)
This function flushes an output bit buffer.
Definition: bitfile.c:480
This is an complete definition for the type containing data needed to correctly manipulate a bit file...
Definition: bitfile.c:71