qr2_buffer_add_int

GameSpy SDK

qr2_buffer_add_int

Add a string or integer to the qr2 buffer.  This is used when responding to a qr2 query callback.

void qr2_buffer_add_int(
qr2_buffer_t outbuf,
int value );
RoutineRequired HeaderDistribution
qr2_buffer_add_int<qr2.h>SDKZIP

Parameters

outbuf
[in] Buffer to add the value to. This is obtained from the qr2callback.
value
[in] String or integer value to append to the buffer.

Remarks

The qr2_buffer_add function appends a string to the buffer. The qr2_buffer_add_int function appends an integer to the bufer.  These buffers are used to construct responses to user queries and typically contain information pertaining to the game status.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
qr2_buffer_add_intqr2_buffer_add_intAqr2_buffer_add_intW

qr2_buffer_add_intW and qr2_buffer_add_intA are UNICODE and ANSI mapped versions of qr2_buffer_add_int. The arguments of qr2_buffer_add_intA are ANSI strings; those of qr2_buffer_add_intW are wide-character strings.