class BSON::Decimal128
def to_bson(buffer = ByteBuffer.new)
- Since: - 4.2.0
Other tags:
- See: http://bsonspec.org/#/specification -
Returns:
-
(BSON::ByteBuffer)
- The buffer with the encoded object.
Other tags:
- Example: Get the raw bson bytes in a buffer. -
def to_bson(buffer = ByteBuffer.new) buffer.put_decimal128(@low, @high) end