Module: Mongo::Protocol::Serializers::CString Private
- Defined in:
- build/ruby-driver-master/lib/mongo/protocol/serializers.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
MongoDB wire protocol serialization strategy for C style strings.
Serializes and de-serializes C style strings (null terminated).
Class Method Summary collapse
-
.serialize(buffer, value, validating_keys = BSON::Config.validating_keys?) ⇒ String
private
Serializes a C style string into the buffer.
Class Method Details
.serialize(buffer, value, validating_keys = BSON::Config.validating_keys?) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Serializes a C style string into the buffer
83 84 85 |
# File 'build/ruby-driver-master/lib/mongo/protocol/serializers.rb', line 83 def self.serialize(buffer, value, validating_keys = BSON::Config.validating_keys?) buffer.put_cstring(value) end |