powered by
mongo.bson.from.buffer(buf)
No futher data may be appended to the buffer after calling this function.
mongo.bson.buffer.append
mongo.bson.destroy
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)
Run the code above in your browser using DataLab