85 void WriteFloat(
float f,
int exponentBits,
int mantissaBits );
98 void WriteDeltaFloat(
float oldValue,
float newValue,
int exponentBits,
int mantissaBits );
114 float ReadFloat(
int exponentBits,
int mantissaBits )
const;
127 float ReadDeltaFloat(
float oldValue,
int exponentBits,
int mantissaBits )
const;
150 void WriteDelta(
int oldValue,
int newValue,
int numBits );
151 int ReadDelta(
int oldValue,
int numBits )
const;
300 WriteBits( *reinterpret_cast<int *>(&f), 32 );
305 WriteBits( bits, 1 + exponentBits + mantissaBits );
337 WriteDelta( *reinterpret_cast<int *>(&oldValue), *reinterpret_cast<int *>(&newValue), 32 );
343 WriteDelta( oldBits, newBits, 1 + exponentBits + mantissaBits );
364 return (
unsigned char)
ReadBits( 8 );
372 return (
unsigned short)
ReadBits( 16 );
403 return (
signed char)
ReadDelta( oldValue, -8 );
407 return (
unsigned char)
ReadDelta( oldValue, 8 );
411 return (
short)
ReadDelta( oldValue, -16 );
420 *
reinterpret_cast<int *
>(&
value) =
ReadDelta( *reinterpret_cast<int *>(&oldValue), 32 );
426 int newBits =
ReadDelta( oldBits, 1 + exponentBits + mantissaBits );
455 void WriteFloat(
float f,
int exponentBits,
int mantissaBits );
468 void WriteDeltaFloat(
float oldValue,
float newValue,
int exponentBits,
int mantissaBits );
480 float ReadFloat(
int exponentBits,
int mantissaBits )
const;
493 float ReadDeltaFloat(
float oldValue,
int exponentBits,
int mantissaBits )
const;
506 void WriteDelta(
int oldValue,
int newValue,
int numBits );
507 int ReadDelta(
int oldValue,
int numBits )
const;
559 WriteBits( *reinterpret_cast<int *>(&f), 32 );
564 WriteBits( bits, 1 + exponentBits + mantissaBits );
596 WriteDelta( *reinterpret_cast<int *>(&oldValue), *reinterpret_cast<int *>(&newValue), 32 );
602 WriteDelta( oldBits, newBits, 1 + exponentBits + mantissaBits );
610 return (
unsigned char)
ReadBits( 8 );
618 return (
unsigned short)
ReadBits( 16 );
649 return (
signed char)
ReadDelta( oldValue, -8 );
653 return (
unsigned char)
ReadDelta( oldValue, 8 );
657 return (
short)
ReadDelta( oldValue, -16 );
666 *
reinterpret_cast<int *
>(&
value) =
ReadDelta( *reinterpret_cast<int *>(&oldValue), 32 );
672 int newBits =
ReadDelta( oldBits, 1 + exponentBits + mantissaBits );
static int DirToBits(const idVec3 &dir, int numBits)
int GetReadCount(void) const
GLsizei const GLfloat * value
int ReadShort(void) const
void ReadData(void *data, int length) const
float ReadAngle8(void) const
void WriteDeltaFloat(float oldValue, float newValue)
void WriteDeltaChar(int oldValue, int newValue)
void WriteData(const void *data, int length)
static idVec3 BitsToDir(int bits, int numBits)
void WriteDeltaShort(int oldValue, int newValue)
void SaveWriteState(int &s, int &b) const
int GetRemaingData(void) const
void ReadByteAlign(void) const
void WriteBits(int value, int numBits)
int GetReadBit(void) const
int ReadDeltaByteCounter(int oldValue) const
void WriteDelta(int oldValue, int newValue, int numBits)
int GetMaxSize(void) const
void ReadString(char *buffer, int bufferSize) const
int ReadDeltaLong(int oldValue) const
int ReadString(char *buffer, int bufferSize) const
void WriteString(const char *s, int maxLength=-1, bool make7Bit=true)
int ReadBits(int numBits) const
void WriteDeltaByte(int oldValue, int newValue)
void WriteDir(const idVec3 &dir, int numBits)
int ReadDeltaShort(int oldValue) const
bool CheckOverflow(int numBits)
bool HasChanged(void) const
int GetNumBitsRead(void) const
static float BitsToFloat(int i, int exponentBits, int mantissaBits)
void WriteDeltaLongCounter(int oldValue, int newValue)
int ReadDeltaShortCounter(int oldValue) const
void Init(byte *data, int length)
int ReadData(void *data, int length) const
void SetWriteBit(int bit)
void WriteData(const void *data, int length)
int ReadUShort(void) const
int GetRemainingSpace(void) const
const idBitMsg * readDelta
void WriteDeltaChar(int oldValue, int newValue)
void WriteNetadr(const netadr_t adr)
bool ReadDeltaDict(idDict &dict, const idDict *base) const
int ReadDelta(int oldValue, int numBits) const
void Init(const idBitMsg *base, idBitMsg *newBase, idBitMsg *delta)
int ReadUShort(void) const
float ReadDeltaFloat(float oldValue) const
void WriteByteAlign(void)
void WriteDict(const idDict &dict)
int ReadDeltaShort(int oldValue) const
void WriteDeltaFloat(float oldValue, float newValue)
int ReadDeltaByteCounter(int oldValue) const
bool IsOverflowed(void) const
void WriteDeltaShort(int oldValue, int newValue)
void BeginReading(void) const
GLsizei GLsizei GLenum GLenum const GLvoid * data
void WriteAngle16(float f)
int ReadDeltaByte(int oldValue) const
float ReadFloat(void) const
void WriteDelta(int oldValue, int newValue, int numBits)
void WriteAngle8(float f)
void SetReadCount(int bytes)
float ReadAngle8(void) const
float ReadAngle16(void) const
float ReadDeltaFloat(float oldValue) const
void WriteDeltaByte(int oldValue, int newValue)
void ReadNetadr(netadr_t *adr) const
idVec3 ReadDir(int numBits) const
void ReadDict(idDict &dict)
int ReadDeltaShortCounter(int oldValue) const
int ReadDeltaChar(int oldValue) const
int ReadDeltaLongCounter(int oldValue) const
float ReadAngle16(void) const
void WriteDeltaShortCounter(int oldValue, int newValue)
void SetAllowOverflow(bool set)
void WriteDeltaLongCounter(int oldValue, int newValue)
int GetRemainingReadBits(void) const
bool WriteDeltaDict(const idDict &dict, const idDict *base)
int ReadDeltaLong(int oldValue) const
int ReadDeltaByte(int oldValue) const
void RestoreWriteState(int s, int b)
int ReadDelta(int oldValue, int numBits) const
void WriteDeltaByteCounter(int oldValue, int newValue)
void WriteAngle16(float f)
GLsizei const GLcharARB const GLint * length
void WriteDeltaLong(int oldValue, int newValue)
void WriteAngle8(float f)
void RestoreReadState(int c, int b)
float ReadFloat(void) const
void WriteDeltaLong(int oldValue, int newValue)
int ReadDeltaChar(int oldValue) const
void SaveReadState(int &c, int &b) const
void WriteDeltaByteCounter(int oldValue, int newValue)
void WriteBits(int value, int numBits)
void WriteDir(const idVec3 &dir, int numBits)
void WriteString(const char *s, int maxLength=-1)
idVec3 ReadDir(int numBits) const
void WriteDeltaShortCounter(int oldValue, int newValue)
byte * GetByteSpace(int length)
int ReadBits(int numBits) const
int GetRemainingWriteBits(void) const
int GetWriteBit(void) const
int GetNumBitsWritten(void) const
static int FloatToBits(float f, int exponentBits, int mantissaBits)
int ReadShort(void) const
int ReadDeltaLongCounter(int oldValue) const