# File lib/bson/bson_c.rb, line 23 def self.serialize(obj, check_keys=false, move_id=false, max_bson_size=BSON::DEFAULT_MAX_BSON_SIZE) ByteBuffer.new(CBson.serialize(obj, check_keys, move_id, max_bson_size)) end