bson_subtype_t (3) - Linux Manuals
bson_subtype_t: Binary Field Subtype
Command to display bson_subtype_t
manual in Linux: $ man 3 bson_subtype_t
NAME
bson_subtype_t - Binary Field Subtype
SYNOPSIS
#include <bson.h>
typedef enum
{
BSON_SUBTYPE_BINARY = 0x00,
BSON_SUBTYPE_FUNCTION = 0x01,
BSON_SUBTYPE_BINARY_DEPRECATED = 0x02,
BSON_SUBTYPE_UUID_DEPRECATED = 0x03,
BSON_SUBTYPE_UUID = 0x04,
BSON_SUBTYPE_MD5 = 0x05,
BSON_SUBTYPE_USER = 0x80,
} bson_subtype_t;
DESCRIPTION
This enumeration contains the various subtypes that may be used in a binary field. See
http://bsonspec.org
for more information.
EXAMPLE
bson_t doc = BSON_INITIALIZER;
BSON_APPEND_BINARY (&doc, "binary", BSON_SUBTYPE_BINARY, data, data_len);
COLOPHON
This page is part of libbson.
Please report any bugs at
https://jira.mongodb.org/browse/CDRIVER.
Pages related to bson_subtype_t
- bson_set_error (3) - This is a helper function to set the parameters of a bson_error_t. It handles the case where error is NULL by doing nothing.
- bson_sized_new (3) - The bson_sized_new() function shall create a new bson_t on the heap with a preallocated buffer. This is useful if you have a good idea of the size of the resulting document.
- bson_snprintf (3) - This is a portable wrapper around snprintf(). It also enforces a trailing in the resulting string.
- bson_strdup (3) - Copies str into a new string. If str is NULL, then NULL is returned.
- bson_strdup_printf (3) - This function performs a printf style format but into a newly allocated string.
- bson_strdupv_printf (3) - This function is like bson_strdup_printf() except takes a va_list of parameters.
- bson_strerror_r (3) - This is a portability wrapper around strerror().
- bson_strfreev (3) - This will free each string in a NULL-terminated array of strings and then the array itself.
- bson_string_append (3) - Appends the ASCII or UTF-8 encoded string str to string. This is not suitable for embedding NULLs in strings.
- bson_string_append_c (3) - Appends c to the string builder string.