diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-05-02 09:16:56 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-05-02 09:16:56 -0400 |
commit | 49cf0ebd80e8b007a6bcd08d3c956b149afa6f81 (patch) | |
tree | 5426b926fda611d8f956ab05bf987895881c491e /src/mongo/idl/basic_types.idl | |
parent | 3d06c50d9427ac64785d2b62ca368010890aa9be (diff) | |
download | mongo-49cf0ebd80e8b007a6bcd08d3c956b149afa6f81.tar.gz |
SERVER-28827 BinData for IDL
Diffstat (limited to 'src/mongo/idl/basic_types.idl')
-rw-r--r-- | src/mongo/idl/basic_types.idl | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/src/mongo/idl/basic_types.idl b/src/mongo/idl/basic_types.idl index 76438ecc01f..1dd9495d65e 100644 --- a/src/mongo/idl/basic_types.idl +++ b/src/mongo/idl/basic_types.idl @@ -54,11 +54,33 @@ types: cpp_type: "bool" deserializer: "mongo::BSONElement::boolean" - # TODO: support bindata - # bindata: - # bson_serialization_type: bindata - # cpp_type: "std:" - # deserializer: "mongo::BSONElement::str" + bindata_generic: + bson_serialization_type: bindata + bindata_subtype: generic + description: "A BSON bindata of " + cpp_type: "std::vector<std::uint8_t>" + deserializer: "mongo::BSONElement::_binDataVector" + + bindata_function: + bson_serialization_type: bindata + bindata_subtype: function + description: "A BSON bindata of function sub type" + cpp_type: "std::vector<std::uint8_t>" + deserializer: "mongo::BSONElement::_binDataVector" + + bindata_uuid: + bson_serialization_type: bindata + bindata_subtype: uuid + description: "A BSON bindata of uuid sub type" + cpp_type: "std::array<std::uint8_t, 16>" + deserializer: "mongo::BSONElement::uuid" + + bindata_md5: + bson_serialization_type: bindata + bindata_subtype: md5 + description: "A BSON bindata of uuid sub type" + cpp_type: "std::array<std::uint8_t, 16>" + deserializer: "mongo::BSONElement::md5" objectid: bson_serialization_type: objectid |