Home
last modified time | relevance | path

Searched refs:bson_malloc (Results 1 – 25 of 98) sorted by relevance

1234

/dports/databases/p5-BSON-XS/BSON-XS-v0.8.4/bson/
H A Dbson-value.c39 dst->value.v_utf8.str = bson_malloc (src->value.v_utf8.len + 1); in bson_value_copy()
48 dst->value.v_doc.data = bson_malloc (src->value.v_doc.data_len); in bson_value_copy()
56 dst->value.v_binary.data = bson_malloc (src->value.v_binary.data_len); in bson_value_copy()
76 dst->value.v_dbpointer.collection = bson_malloc (src->value.v_dbpointer.collection_len + 1); in bson_value_copy()
85 dst->value.v_code.code = bson_malloc (src->value.v_code.code_len + 1); in bson_value_copy()
93 dst->value.v_symbol.symbol = bson_malloc (src->value.v_symbol.len + 1); in bson_value_copy()
101 dst->value.v_codewscope.code = bson_malloc (src->value.v_codewscope.code_len + 1); in bson_value_copy()
107 dst->value.v_codewscope.scope_data = bson_malloc (src->value.v_codewscope.scope_len); in bson_value_copy()
H A Dbson-string.c71 ret->str = bson_malloc (ret->alloc); in bson_string_new()
347 out = bson_malloc (len + 1); in bson_strdup()
466 ret = bson_malloc (n_bytes + 1); in bson_strndup()
H A Dbson-memory.h53 void *bson_malloc (size_t num_bytes);
H A Dbson-memory.c63 bson_malloc (size_t num_bytes) /* IN */ in bson_malloc() function
/dports/databases/pecl-mongodb/mongodb-1.9.1/src/libmongoc/src/libbson/src/bson/
H A Dbson-value.c39 dst->value.v_utf8.str = bson_malloc (src->value.v_utf8.len + 1); in bson_value_copy()
47 dst->value.v_doc.data = bson_malloc (src->value.v_doc.data_len); in bson_value_copy()
55 dst->value.v_binary.data = bson_malloc (src->value.v_binary.data_len); in bson_value_copy()
78 bson_malloc (src->value.v_dbpointer.collection_len + 1); in bson_value_copy()
88 dst->value.v_code.code = bson_malloc (src->value.v_code.code_len + 1); in bson_value_copy()
96 dst->value.v_symbol.symbol = bson_malloc (src->value.v_symbol.len + 1); in bson_value_copy()
105 bson_malloc (src->value.v_codewscope.code_len + 1); in bson_value_copy()
112 bson_malloc (src->value.v_codewscope.scope_len); in bson_value_copy()
H A Dbson-string.c75 ret->str = bson_malloc (ret->alloc); in bson_string_new()
329 out = bson_malloc (len + 1); in bson_strdup()
448 ret = bson_malloc (n_bytes + 1); in bson_strndup()
H A Dbson-memory.h48 bson_malloc (size_t num_bytes);
/dports/devel/libbson/libbson-1.8.1/src/bson/
H A Dbson-value.c39 dst->value.v_utf8.str = bson_malloc (src->value.v_utf8.len + 1); in bson_value_copy()
47 dst->value.v_doc.data = bson_malloc (src->value.v_doc.data_len); in bson_value_copy()
55 dst->value.v_binary.data = bson_malloc (src->value.v_binary.data_len); in bson_value_copy()
77 bson_malloc (src->value.v_dbpointer.collection_len + 1); in bson_value_copy()
87 dst->value.v_code.code = bson_malloc (src->value.v_code.code_len + 1); in bson_value_copy()
95 dst->value.v_symbol.symbol = bson_malloc (src->value.v_symbol.len + 1); in bson_value_copy()
104 bson_malloc (src->value.v_codewscope.code_len + 1); in bson_value_copy()
111 bson_malloc (src->value.v_codewscope.scope_len); in bson_value_copy()
H A Dbson-string.c74 ret->str = bson_malloc (ret->alloc); in bson_string_new()
349 out = bson_malloc (len + 1); in bson_strdup()
468 ret = bson_malloc (n_bytes + 1); in bson_strndup()
H A Dbson-memory.h51 bson_malloc (size_t num_bytes);
H A Dbson-memory.c63 bson_malloc (size_t num_bytes) /* IN */ in bson_malloc() function
/dports/devel/libbson/libbson-1.8.1/doc/
H A Dbson_malloc.rst1 :man_page: bson_malloc
3 bson_malloc()
12 bson_malloc (size_t num_bytes);
/dports/net/freeswitch/freeswitch-1.10.3.-release/src/mod/event_handlers/mod_cdr_mongodb/driver/src/
H A Dgridfs.c25 return (gridfs*)bson_malloc(sizeof(gridfs)); in gridfs_create()
33 return (gridfile*)bson_malloc(sizeof(gridfile)); in gridfile_create()
47 bson *b = bson_malloc( sizeof( bson ) ); in chunk_new()
72 gfs->dbname = ( const char * )bson_malloc( strlen( dbname )+1 ); in gridfs_init()
77 gfs->prefix = ( const char * )bson_malloc( strlen( prefix )+1 ); in gridfs_init()
221 gfile->remote_name = ( char * )bson_malloc( strlen( remote_name ) + 1 ); in gridfile_writer_init()
224 gfile->content_type = ( char * )bson_malloc( strlen( content_type ) + 1 ); in gridfile_writer_init()
243 gfile->pending_data = ( char * )bson_malloc( to_write ); in gridfile_write_buffer()
257 buffer = ( char * )bson_malloc( DEFAULT_CHUNK_SIZE ); in gridfile_write_buffer()
289 gfile->pending_data = ( char * )bson_malloc( bytes_left ); in gridfile_write_buffer()
[all …]
H A Dmongo.c28 return (mongo*)bson_malloc(sizeof(mongo)); in mongo_create()
98 return (mongo_cursor*)bson_malloc(sizeof(mongo_cursor)); in mongo_cursor_create()
149 cmd_db_name = (char *)bson_malloc( len + 6 ); in mongo_ns_to_cmd_db()
272 mongo_message *mm = ( mongo_message * )bson_malloc( len ); in mongo_message_create()
326 out = ( mongo_reply * )bson_malloc( len ); in mongo_read_response()
408 conn->primary = bson_malloc( sizeof( mongo_host_port ) ); in mongo_connect()
425 conn->replset = bson_malloc( sizeof( mongo_replset ) ); in mongo_replset_init()
432 conn->primary = bson_malloc( sizeof( mongo_host_port ) ); in mongo_replset_init()
1025 command = (bson *)bson_malloc( sizeof( bson ) ); in mongo_write_concern_finish()
1251 cursor->ns = ( const char * )bson_malloc( strlen( ns ) + 1 ); in mongo_cursor_init()
[all …]
/dports/www/nginx-full/nginx_http_gridfs_module-7970bab/mongo-c-driver/src/
H A Dgridfs.c25 return (gridfs*)bson_malloc(sizeof(gridfs)); in gridfs_create()
33 return (gridfile*)bson_malloc(sizeof(gridfile)); in gridfile_create()
47 bson *b = bson_malloc( sizeof( bson ) ); in chunk_new()
72 gfs->dbname = ( const char * )bson_malloc( strlen( dbname )+1 ); in gridfs_init()
77 gfs->prefix = ( const char * )bson_malloc( strlen( prefix )+1 ); in gridfs_init()
221 gfile->remote_name = ( char * )bson_malloc( strlen( remote_name ) + 1 ); in gridfile_writer_init()
224 gfile->content_type = ( char * )bson_malloc( strlen( content_type ) + 1 ); in gridfile_writer_init()
243 gfile->pending_data = ( char * )bson_malloc( to_write ); in gridfile_write_buffer()
258 buffer = ( char * )bson_malloc( DEFAULT_CHUNK_SIZE ); in gridfile_write_buffer()
290 gfile->pending_data = ( char * )bson_malloc( bytes_left ); in gridfile_write_buffer()
[all …]
H A Dmongo.c37 return (mongo*)bson_malloc(sizeof(mongo)); in mongo_create()
105 return (mongo_cursor*)bson_malloc(sizeof(mongo_cursor)); in mongo_cursor_create()
127 mongo_message *mm = ( mongo_message * )bson_malloc( len ); in mongo_message_create()
181 out = ( mongo_reply * )bson_malloc( len ); in mongo_read_response()
253 conn->primary = bson_malloc( sizeof( mongo_host_port ) ); in mongo_connect()
270 conn->replset = bson_malloc( sizeof( mongo_replset ) ); in mongo_replset_init()
274 conn->replset->name = ( char * )bson_malloc( strlen( name ) + 1 ); in mongo_replset_init()
277 conn->primary = bson_malloc( sizeof( mongo_host_port ) ); in mongo_replset_init()
362 host_port = bson_malloc( sizeof( mongo_host_port ) ); in mongo_replset_check_seed()
878 cursor->ns = ( const char * )bson_malloc( strlen( ns ) + 1 ); in mongo_cursor_init()
[all …]
/dports/www/nginx-full/nginx_http_gridfs_module-7970bab/mongo-c-driver/test/
H A Dgridfs.c46 char *data_after = bson_malloc( LARGE ); in test_gridfile()
95 char *data_before = bson_malloc( UPPER ); in test_basic()
139 char *buf = bson_malloc( LARGE ); in test_streaming()
140 char *small = bson_malloc( LOWER ); in test_streaming()
186 char *buffer = bson_malloc( LARGE ); in test_large()
H A Dfunctions.c61 ptr = bson_malloc( size ); in main()
72 ptr = bson_malloc( size ); in main()
/dports/databases/pecl-mongodb/mongodb-1.9.1/src/libmongocrypt/src/
H A Dmongocrypt-buffer.c37 buf->data = bson_malloc (buf->len); in _make_owned()
67 buf->data = bson_malloc (len); in _mongocrypt_buffer_resize()
232 dst->data = bson_malloc ((size_t) src->len); in _mongocrypt_buffer_copy_to()
333 bson_malloc (1); /* Freed in bson_value_destroy */ in _mongocrypt_buffer_to_bson_value()
361 plaintext->data = bson_malloc (plaintext->len); in _mongocrypt_buffer_from_iter()
420 buf->data = bson_malloc (buf->len); in _mongocrypt_buffer_copy_from_hex()
H A Dmongocrypt-ctx-datakey.c88 uuid.data = bson_malloc (UUID_LEN); in _append_id()
227 plaintext_key_material.data = bson_malloc (MONGOCRYPT_KEY_LEN); in mongocrypt_ctx_datakey_init()
257 bson_malloc (dkctx->encrypted_key_material.len); in mongocrypt_ctx_datakey_init()
/dports/devel/mongo-c-driver/mongo-c-driver-1.8.1/src/mongoc/
H A Dmongoc-set.c28 mongoc_set_t *set = (mongoc_set_t *) bson_malloc (sizeof (*set)); in mongoc_set_new()
31 set->items = (mongoc_set_item_t *) bson_malloc (sizeof (*set->items) * in mongoc_set_new()
165 old_set = (mongoc_set_item_t *) bson_malloc (sizeof (*old_set) * items_len); in mongoc_set_for_each()
H A Dmongoc-server-stream.c35 server_stream = bson_malloc (sizeof (mongoc_server_stream_t)); in mongoc_server_stream_new()
/dports/databases/pecl-mongodb/mongodb-1.9.1/src/libmongoc/src/libmongoc/src/mongoc/
H A Dmongoc-set.c28 mongoc_set_t *set = (mongoc_set_t *) bson_malloc (sizeof (*set)); in mongoc_set_new()
31 set->items = (mongoc_set_item_t *) bson_malloc (sizeof (*set->items) * in mongoc_set_new()
197 old_set = (mongoc_set_item_t *) bson_malloc (sizeof (*old_set) * items_len); in mongoc_set_for_each_with_id()
H A Dmongoc-scram.c281 scram->auth_message = (uint8_t *) bson_malloc (outbufmax); in _mongoc_scram_start()
634 *current_val = (uint8_t *) bson_malloc (*current_val_len + 1); in _mongoc_scram_step2()
922 *current_val = (uint8_t *) bson_malloc (*current_val_len + 1); in _mongoc_scram_step3()
1063 in_utf16 = bson_malloc (sizeof (UChar) * in _mongoc_sasl_prep_impl()
1089 out_utf16 = bson_malloc (sizeof (UChar) * (out_utf16_len + 1)); in _mongoc_sasl_prep_impl()
1118 out_utf8 = (char *) bson_malloc ( in _mongoc_sasl_prep_impl()
H A Dmongoc-server-stream.c35 server_stream = bson_malloc (sizeof (mongoc_server_stream_t)); in mongoc_server_stream_new()

1234