UFO: Alien Invasion
msg.h File Reference

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

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sizebuf_t
 

Functions

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

Detailed Description

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

Definition in file msg.h.

Function Documentation

◆ SZ_Clear()

void SZ_Clear ( sizebuf_t buf)

Definition at line 36 of file msg.cpp.

Referenced by Cbuf_InsertText().

◆ 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().