UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
msg.cpp File Reference

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

#include "common.h"
#include "msg.h"

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 voidSZ_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.

Definition in file msg.cpp.

Function Documentation

void SZ_Clear ( sizebuf_t buf)

Definition at line 36 of file msg.cpp.

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.cpp.

References Com_Error(), sizebuf_s::cursize, sizebuf_s::data, ERR_FATAL, length, 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.cpp.

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

Referenced by Cbuf_Init(), and Cbuf_Shutdown().

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

Definition at line 52 of file msg.cpp.

References SZ_GetSpace().

Referenced by Cbuf_AddText(), and Cbuf_InsertText().