qr2_buffer_add

GameSpy SDK

qr2_buffer_add

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

void qr2_buffer_add(
qr2_buffer_t outbuf,
const gsi_char * value );
RoutineRequired HeaderDistribution
qr2_buffer_add<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_addqr2_buffer_addAqr2_buffer_addW

qr2_buffer_addW and qr2_buffer_addA are UNICODE and ANSI mapped versions of qr2_buffer_add. The arguments of qr2_buffer_addA are ANSI strings; those of qr2_buffer_addW are wide-character strings.