Module Mongo::Protocol::Serializers::Int64
In: lib/mongo/protocol/serializers.rb

MongoDB wire protocol serialization strategy for 64-bit integers.

Serializes and de-serializes one 64-bit integer.

Methods

Public Class methods

Deserializes a 64-bit Fixnum from the IO stream

@param [ String ] buffer Buffer containing the 64-bit integer.

@return [Fixnum] Deserialized Int64.

Serializes a fixnum to an 8-byte 64-bit integer

@param buffer [ String ] Buffer to receive the serialized Int64. @param value [ Fixnum ] 64-bit integer to be serialized.

@return [ String ] Buffer with serialized value.

[Validate]