Description Usage Arguments Value See Also Examples
Get the number of bytes which would be taken up by the BSON data when the
buffer is converted to a mongo.bson object with
mongo.bson.from.buffer()
.
1 |
buf |
(mongo.bson.buffer) the mongo.bson.buffer object to examine. |
(integer) the number of bytes which would be taken up by the BSON
data with the buffer is converted to a mongo.bson object with
mongo.bson.from.buffer()
.
mongo.bson.buffer,
mongo.bson.
1 2 3 4 5 6 7 | buf <- mongo.bson.buffer.create()
mongo.bson.buffer.append(buf, "name", "Fred")
mongo.bson.buffer.append(buf, "city", "Dayton")
# both should report 37
print(mongo.bson.buffer.size(buf))
y <- mongo.bson.from.buffer(buf)
print(mongo.bson.size(y))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.