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