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).

Methods

serialize  

Public Class methods

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.

[Validate]