![]() |
![]()
| ![]() |
![]()
Bulk BSON serialization Abstraction SYNOPSIS#include <bson/bson.h> typedef struct _bson_writer_t bson_writer_t; bson_writer_t * bson_writer_new (uint8_t **buf, DESCRIPTIONThe bson_writer_t API provides an abstraction for serializing many BSON documents to a single memory region. The memory region may be dynamically allocated and re-allocated as more memory is demanded. This can be useful when building network packets from a high-level language. For example, you can serialize a Python Dictionary directly to a single buffer destined for a TCP packet. EXAMPLE#include <bson/bson.h> int main (int argc, char *argv[]) { AUTHORMongoDB, Inc COPYRIGHT2009-present, MongoDB, Inc.
|