|
SYNOPSISsize_t bson_uint32_to_string (uint32_t value, PARAMETERS
DESCRIPTIONConverts value to a string. If value is from 0 to 999, it will use a constant string in the data section of the library. If not, a string will be formatted using str and snprintf(). strptr will always be set. It will either point to str or a constant string. Use this as your key. ARRAY ELEMENT KEY BUILDINGEach element in a BSON array has a monotonic string key like "0", "1", etc. This function is optimized for generating such string keys. char str[16];
const char *key;
uint32_t i;
for (i = 0; i < 10; i++) {
RETURNSThe number of bytes in the resulting string. AUTHORMongoDB, Inc COPYRIGHT2009-present, MongoDB, Inc.
|