Description Usage Arguments Details Value See Also Examples
Convert a mongo.bson.buffer object to a mongo.bson object.
1 |
buf |
(mongo.bson.buffer) The buffer to convert. |
Use this after appending data to a buffer to turn it into a mongo.bson object for network transport.
No futher data may be appended to the buffer after calling this function.
A mongo.bson object as converted from the buffer parameter.
mongo.bson,
mongo.bson.buffer,
mongo.bson.buffer.append
,
mongo.bson.destroy
.
1 2 3 4 5 6 | buf <- mongo.bson.buffer.create()
mongo.bson.buffer.append(buf, "name", "Fred")
mongo.bson.buffer.append(buf, "city", "Dayton")
b <- mongo.bson.from.buffer(buf)
print(b)
mongo.bson.destroy(b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.