Example #1
0
	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);
	}
Example #2
0
	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);
	}
Example #3
0
	void User::FromBson(const char* __data,INT32 __size)
	{
		mongo::BSONObj  __obj(__data);
		assert(__obj.objsize() == __size);
		FromBson(__obj);
	}
Example #4
0
		Mave FromBson(bsoncxx::array::view bson)
		{
			return FromBson(bsoncxx::types::value{ bsoncxx::types::b_array{ bson } });
		}
Example #5
0
		Mave FromBson(bsoncxx::document::view bson)
		{
			return FromBson(bsoncxx::types::value{ bsoncxx::types::b_document{ bson } });
		}