libmongocrypt
|
#include <mongocrypt.h>
Data Fields | |
void * | data |
uint32_t | len |
A non-owning view of a byte buffer.
When constructing a mongocrypt_binary_t it is the responsibility of the caller to maintain the lifetime of the viewed data. However, all public functions that take a mongocrypt_binary_t as an argument will make a copy of the viewed data. For example, the following is valid:
Functions with a mongocrypt_binary_t* out guarantee the lifetime of the viewed data to live as long as the parent object. For example, mongocrypt_ctx_mongo_op guarantees that the viewed data of mongocrypt_binary_t is valid until the parent ctx is destroyed with mongocrypt_ctx_destroy.
The mongocrypt_binary_t
struct definition is public. Consumers may rely on the struct layout.