msg.c File Reference

Message IO functions - handles size buffers. More...

#include "common.h"
#include "msg.h"
Include dependency graph for msg.c:

Go to the source code of this file.

Functions

void SZ_Init (sizebuf_t *buf, byte *data, int length)
void SZ_Clear (sizebuf_t *buf)
static void * SZ_GetSpace (sizebuf_t *buf, int length)
void SZ_Write (sizebuf_t *buf, const void *data, int length)

Detailed Description

Message IO functions - handles size buffers.

Message IO functions - handles byte ordering and avoids alignment errors.

Definition in file msg.c.


Function Documentation

void SZ_Clear ( sizebuf_t buf  ) 

Definition at line 36 of file msg.c.

References sizebuf_s::cursize.

Referenced by Cbuf_InsertText().

static void* SZ_GetSpace ( sizebuf_t buf,
int  length 
) [static]

Definition at line 41 of file msg.c.

References Com_Error(), sizebuf_s::cursize, sizebuf_s::data, data, ERR_FATAL, and sizebuf_s::maxsize.

Referenced by SZ_Write().

void SZ_Init ( sizebuf_t buf,
byte data,
int  length 
)

Definition at line 29 of file msg.c.

References sizebuf_s::data, and sizebuf_s::maxsize.

Referenced by Cbuf_Init().

void SZ_Write ( sizebuf_t buf,
const void *  data,
int  length 
)

Definition at line 54 of file msg.c.

References SZ_GetSpace().

Referenced by Cbuf_AddText(), and Cbuf_InsertText().


Generated by  doxygen 1.6.2