Module: Mongo::Protocol::Serializers Private
Do not use. This module is for internal use only.
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Classes:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/mongo/protocol/serializers.rb, lib/mongo/protocol/bit_vector.rb |
Overview
Container for various serialization strategies
Each strategy must have a serialization method named serailize
and a deserialization method named deserialize
Serialize methods must take buffer and value arguements and serialize the value into the buffer
Deserialize methods must take an IO stream argument and deserialize the value from the stream of bytes
Constant Summary
-
HEADER_PACK =
# File 'lib/mongo/protocol/serializers.rb', line 41'l<l<l<l<'.freeze
-
INT32_PACK =
# File 'lib/mongo/protocol/serializers.rb', line 39'l<'.freeze
-
INT64_PACK =
# File 'lib/mongo/protocol/serializers.rb', line 40'q<'.freeze
-
NULL =
# File 'lib/mongo/protocol/serializers.rb', line 380.chr.freeze
-
ZERO =
# File 'lib/mongo/protocol/serializers.rb', line 370.freeze