class BSON::Int64

def self.from_bson(buffer, **options)

Other tags:
    Since: - 2.0.0

Other tags:
    See: http://bsonspec.org/#/specification -

Returns:
  • (Integer | BSON::Int64) - The decoded Integer.

Options Hash: (**options)
  • :mode (nil | :bson) -- Decoding mode to use.

Parameters:
  • buffer (ByteBuffer) -- The byte buffer.
def self.from_bson(buffer, **options)
  value = buffer.get_int64
  if options[:mode] == :bson
    new(value)
  else
    value
  end
end