mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
Add MSG_WriteBytes to match MSG_ReadBytes.
This commit is contained in:
parent
6e10d847ef
commit
042f310ed7
2 changed files with 7 additions and 0 deletions
|
@ -40,6 +40,7 @@ void MSG_WriteShort (sizebuf_t *sb, int c);
|
|||
void MSG_WriteLong (sizebuf_t *sb, int c);
|
||||
void MSG_WriteFloat (sizebuf_t *sb, float f);
|
||||
void MSG_WriteString (sizebuf_t *sb, const char *s);
|
||||
void MSG_WriteBytes (sizebuf_t *sb, const void *buf, int len);
|
||||
void MSG_WriteCoord (sizebuf_t *sb, float coord);
|
||||
void MSG_WriteCoordV (sizebuf_t *sb, const vec3_t coord);
|
||||
void MSG_WriteCoordAngleV (sizebuf_t *sb, const vec3_t coord,
|
||||
|
|
|
@ -106,6 +106,12 @@ MSG_WriteString (sizebuf_t *sb, const char *s)
|
|||
SZ_Write (sb, s, strlen (s) + 1);
|
||||
}
|
||||
|
||||
VISIBLE void
|
||||
MSG_WriteBytes (sizebuf_t *sb, const void *buf, int len)
|
||||
{
|
||||
SZ_Write (sb, buf, len);
|
||||
}
|
||||
|
||||
VISIBLE void
|
||||
MSG_WriteCoord (sizebuf_t *sb, float coord)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue