void User::FromCompress(const char* __data,INT32 __size) { std::string tmpbuf; CUtil::Uncompress(__data,__size,tmpbuf); mongo::BSONObj __obj(tmpbuf.c_str()); assert(__obj.objsize() == tmpbuf.length()); FromBson(__obj); }
void User::FromCompress(const std::string& __inbuf) { std::string tmpbuf; CUtil::Uncompress(__inbuf.c_str(),(UINT32)__inbuf.length(),tmpbuf); mongo::BSONObj __obj(tmpbuf.c_str()); assert(__obj.objsize() == tmpbuf.length()); FromBson(__obj); }
void User::FromBson(const char* __data,INT32 __size) { mongo::BSONObj __obj(__data); assert(__obj.objsize() == __size); FromBson(__obj); }
Mave FromBson(bsoncxx::array::view bson) { return FromBson(bsoncxx::types::value{ bsoncxx::types::b_array{ bson } }); }
Mave FromBson(bsoncxx::document::view bson) { return FromBson(bsoncxx::types::value{ bsoncxx::types::b_document{ bson } }); }