Add MSG_WriteBytes to match MSG_ReadBytes.

This commit is contained in:
Bill Currie 2012-02-06 15:04:01 +09:00
parent 6e10d847ef
commit 042f310ed7
2 changed files with 7 additions and 0 deletions

View file

@ -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,

View file

@ -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)
{