class BSON::Int64
Represents a $maxKey type, which compares less than any other value in the specification.
@see bsonspec.org/#/specification
@since 2.0.0
Constants
- BSON_TYPE
A boolean is type 0x08 in the BSON spec.
@since 2.0.0
- PACK
Constant for the int 64 pack directive.
@since 2.0.0
Public Class Methods
from_bson(buffer)
click to toggle source
Deserialize an Integer from BSON.
@param [ ByteBuffer ] buffer The byte buffer.
@return [ Integer ] The decoded Integer.
@see bsonspec.org/#/specification
@since 2.0.0
# File lib/bson/int64.rb, line 44 def self.from_bson(buffer) buffer.get_int64 end