doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
bitwise.c File Reference
#include <string.h>
#include <stdlib.h>
#include "../ogg/ogg.h"

Go to the source code of this file.

Macros

#define BUFFER_INCREMENT   256
 

Functions

void oggpack_writeinit (oggpack_buffer *b)
 
void oggpackB_writeinit (oggpack_buffer *b)
 
void oggpack_writetrunc (oggpack_buffer *b, long bits)
 
void oggpackB_writetrunc (oggpack_buffer *b, long bits)
 
void oggpack_write (oggpack_buffer *b, unsigned long value, int bits)
 
void oggpackB_write (oggpack_buffer *b, unsigned long value, int bits)
 
void oggpack_writealign (oggpack_buffer *b)
 
void oggpackB_writealign (oggpack_buffer *b)
 
void oggpack_writecopy (oggpack_buffer *b, void *source, long bits)
 
void oggpackB_writecopy (oggpack_buffer *b, void *source, long bits)
 
void oggpack_reset (oggpack_buffer *b)
 
void oggpackB_reset (oggpack_buffer *b)
 
void oggpack_writeclear (oggpack_buffer *b)
 
void oggpackB_writeclear (oggpack_buffer *b)
 
void oggpack_readinit (oggpack_buffer *b, unsigned char *buf, int bytes)
 
void oggpackB_readinit (oggpack_buffer *b, unsigned char *buf, int bytes)
 
long oggpack_look (oggpack_buffer *b, int bits)
 
long oggpackB_look (oggpack_buffer *b, int bits)
 
long oggpack_look1 (oggpack_buffer *b)
 
long oggpackB_look1 (oggpack_buffer *b)
 
void oggpack_adv (oggpack_buffer *b, int bits)
 
void oggpackB_adv (oggpack_buffer *b, int bits)
 
void oggpack_adv1 (oggpack_buffer *b)
 
void oggpackB_adv1 (oggpack_buffer *b)
 
long oggpack_read (oggpack_buffer *b, int bits)
 
long oggpackB_read (oggpack_buffer *b, int bits)
 
long oggpack_read1 (oggpack_buffer *b)
 
long oggpackB_read1 (oggpack_buffer *b)
 
long oggpack_bytes (oggpack_buffer *b)
 
long oggpack_bits (oggpack_buffer *b)
 
long oggpackB_bytes (oggpack_buffer *b)
 
long oggpackB_bits (oggpack_buffer *b)
 
unsigned char * oggpack_get_buffer (oggpack_buffer *b)
 
unsigned char * oggpackB_get_buffer (oggpack_buffer *b)
 

Macro Definition Documentation

#define BUFFER_INCREMENT   256

Definition at line 25 of file bitwise.c.

Function Documentation

void oggpack_adv ( oggpack_buffer b,
int  bits 
)

Definition at line 288 of file bitwise.c.

void oggpack_adv1 ( oggpack_buffer b)

Definition at line 299 of file bitwise.c.

long oggpack_bits ( oggpack_buffer b)

Definition at line 430 of file bitwise.c.

long oggpack_bytes ( oggpack_buffer b)

Definition at line 426 of file bitwise.c.

unsigned char* oggpack_get_buffer ( oggpack_buffer b)

Definition at line 442 of file bitwise.c.

long oggpack_look ( oggpack_buffer b,
int  bits 
)

Definition at line 225 of file bitwise.c.

long oggpack_look1 ( oggpack_buffer b)

Definition at line 278 of file bitwise.c.

long oggpack_read ( oggpack_buffer b,
int  bits 
)

Definition at line 312 of file bitwise.c.

long oggpack_read1 ( oggpack_buffer b)

Definition at line 382 of file bitwise.c.

void oggpack_readinit ( oggpack_buffer b,
unsigned char *  buf,
int  bytes 
)

Definition at line 214 of file bitwise.c.

void oggpack_reset ( oggpack_buffer b)

Definition at line 195 of file bitwise.c.

void oggpack_write ( oggpack_buffer b,
unsigned long  value,
int  bits 
)

Definition at line 69 of file bitwise.c.

void oggpack_writealign ( oggpack_buffer b)

Definition at line 136 of file bitwise.c.

void oggpack_writeclear ( oggpack_buffer b)

Definition at line 205 of file bitwise.c.

void oggpack_writecopy ( oggpack_buffer b,
void source,
long  bits 
)

Definition at line 187 of file bitwise.c.

void oggpack_writeinit ( oggpack_buffer b)

Definition at line 39 of file bitwise.c.

void oggpack_writetrunc ( oggpack_buffer b,
long  bits 
)

Definition at line 50 of file bitwise.c.

void oggpackB_adv ( oggpack_buffer b,
int  bits 
)

Definition at line 295 of file bitwise.c.

void oggpackB_adv1 ( oggpack_buffer b)

Definition at line 307 of file bitwise.c.

long oggpackB_bits ( oggpack_buffer b)

Definition at line 438 of file bitwise.c.

long oggpackB_bytes ( oggpack_buffer b)

Definition at line 434 of file bitwise.c.

unsigned char* oggpackB_get_buffer ( oggpack_buffer b)

Definition at line 446 of file bitwise.c.

long oggpackB_look ( oggpack_buffer b,
int  bits 
)

Definition at line 252 of file bitwise.c.

long oggpackB_look1 ( oggpack_buffer b)

Definition at line 283 of file bitwise.c.

long oggpackB_read ( oggpack_buffer b,
int  bits 
)

Definition at line 348 of file bitwise.c.

long oggpackB_read1 ( oggpack_buffer b)

Definition at line 404 of file bitwise.c.

void oggpackB_readinit ( oggpack_buffer b,
unsigned char *  buf,
int  bytes 
)

Definition at line 220 of file bitwise.c.

void oggpackB_reset ( oggpack_buffer b)

Definition at line 201 of file bitwise.c.

void oggpackB_write ( oggpack_buffer b,
unsigned long  value,
int  bits 
)

Definition at line 103 of file bitwise.c.

void oggpackB_writealign ( oggpack_buffer b)

Definition at line 142 of file bitwise.c.

void oggpackB_writeclear ( oggpack_buffer b)

Definition at line 210 of file bitwise.c.

void oggpackB_writecopy ( oggpack_buffer b,
void source,
long  bits 
)

Definition at line 191 of file bitwise.c.

void oggpackB_writeinit ( oggpack_buffer b)

Definition at line 46 of file bitwise.c.

void oggpackB_writetrunc ( oggpack_buffer b,
long  bits 
)

Definition at line 59 of file bitwise.c.