Module: Mongo::Protocol::Serializers::Zero Private
Relationships & Source Files | |
Defined in: | lib/mongo/protocol/serializers.rb |
Overview
MongoDB wire protocol serialization strategy for 32-bit Zero
.
Serializes and de-serializes one 32-bit Zero
.
Class Method Summary
-
.serialize(buffer, value, validating_keys = nil) ⇒ String
Internal use only
Serializes a 32-bit
Zero
into the buffer.
Class Method Details
.serialize(buffer, value, validating_keys = nil) ⇒ String
Serializes a 32-bit Zero
into the buffer
# File 'lib/mongo/protocol/serializers.rb', line 101
def self.serialize(buffer, value, validating_keys = nil) buffer.put_int32(ZERO) end