Learn R Programming

rmongodb (version 1.8.0)

mongo.bson.buffer.create: Create an new mongo.bson.buffer object

Description

Returns a fresh mongo.bson.buffer object ready to have data appended onto it.

Usage

mongo.bson.buffer.create()

Arguments

Value

A fresh mongo.bson.buffer object

Details

mongo.bson.buffer objects are used to build mongo.bson objects.

See Also

mongo.bson, mongo.bson.buffer.

Examples

Run this code
buf <- mongo.bson.buffer.create()
mongo.bson.buffer.append(buf, "name", "Donna")
b <- mongo.bson.from.buffer(buf)

Run the code above in your browser using DataLab