| Module | Mongo::Protocol::Serializers::CString |
| In: |
lib/mongo/protocol/serializers.rb
|
MongoDB wire protocol serialization strategy for C style strings.
Serializes and de-serializes C style strings (null terminated).
Serializes a C style string into the buffer
@param buffer [ String ] Buffer to receive the serialized CString. @param value [ String ] The string to be serialized.
@return [ String ] Buffer with serialized value.