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 );
Routine | Required Header | Distribution |
---|---|---|
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
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
qr2_buffer_add | qr2_buffer_addA | qr2_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.
Section Reference: Gamespy Query and Reporting 2 SDK
See Also: qr2_buffer_add_int