Class: BSON::Int64
- Inherits:
-
Object
- Object
- BSON::Int64
- Defined in:
- lib/bson/int64.rb
Overview
Represents a $maxKey type, which compares less than any other value in the specification.
Constant Summary collapse
- BSON_TYPE =
A boolean is type 0x08 in the BSON spec.
18.chr.force_encoding(BINARY).freeze
- PACK =
Constant for the int 64 pack directive.
"q<".freeze
Class Method Summary collapse
-
.from_bson(bson) ⇒ Integer
Deserialize an Integer from BSON.
Class Method Details
.from_bson(bson) ⇒ Integer
Deserialize an Integer from BSON.
44 45 46 |
# File 'lib/bson/int64.rb', line 44 def self.from_bson(bson) from_bson_int64(bson.read(8)) end |