Module bson_binary

Standard binary encoding of Bson documents, version 1.0.

Description

Standard binary encoding of Bson documents, version 1.0. See bsonspec.org.

Function Index

get_cstring/1
get_document/1
get_map/1
put_cstring/1utf8 binary cannot contain a 0 byte.
put_document/1

Function Details

get_cstring/1

get_cstring(Bin::binary()) -> {bson:utf8(), binary()}

get_document/1

get_document(X1::binary()) -> {bson:document(), binary()}

get_map/1

get_map(X1::binary()) -> {map(), binary()}

put_cstring/1

put_cstring(UBin::bson:utf8()) -> binary()

utf8 binary cannot contain a 0 byte.

put_document/1

put_document(Document::bson:document() | map()) -> binary()


Generated by EDoc