OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gt2Buffer.h
1/*
2GameSpy GT2 SDK
3Dan "Mr. Pants" Schoenblum
4dan@gamespy.com
5
6Copyright 2002 GameSpy Industries, Inc
7
8devsupport@gamespy.com
9*/
10
11#ifndef _GT2_BUFFER_H_
12#define _GT2_BUFFER_H_
13
14#include "gt2Main.h"
15
16GT2Bool gti2AllocateBuffer(GTI2Buffer * buffer, int size);
17
18int gti2GetBufferFreeSpace(const GTI2Buffer * buffer);
19
20void gti2BufferWriteByte(GTI2Buffer * buffer, GT2Byte b);
21void gti2BufferWriteUShort(GTI2Buffer * buffer, unsigned short s);
22void gti2BufferWriteData(GTI2Buffer * buffer, const GT2Byte * data, int len);
23
24// shortens the buffer by "shortenBy" (length, not size)
25void gti2BufferShorten(GTI2Buffer * buffer, int start, int shortenBy);
26
27#endif
Definition gt2Main.h:140