UFO: Alien Invasion
Loading...
Searching...
No Matches
msg.cpp File Reference

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

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

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

◆ SZ_Clear()

void SZ_Clear ( sizebuf_t * buf)

Definition at line 36 of file msg.cpp.

Referenced by Cbuf_InsertText().

◆ SZ_GetSpace()

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

Definition at line 41 of file msg.cpp.

References Com_Error(), data, ERR_FATAL, and length.

Referenced by SZ_Write().

◆ SZ_Init()

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

Definition at line 29 of file msg.cpp.

References data, length, and OBJZERO.

Referenced by Cbuf_Init(), and Cbuf_Shutdown().

◆ SZ_Write()

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

Definition at line 52 of file msg.cpp.

References data, length, and SZ_GetSpace().

Referenced by Cbuf_AddText(), and Cbuf_InsertText().