| Module | Mongo::Protocol::Serializers::Bytes |
| In: |
lib/mongo/protocol/serializers.rb
|
MongoDB wire protocol serialization strategy for n bytes.
Writes and fetches bytes from the byte buffer.
Deserializes bytes from the byte buffer.
@param [ BSON::ByteBuffer ] buffer Buffer containing the value to read. @param [ Integer ] num_bytes Number of bytes to read.
@return [ String ] The bytes.
@since 2.5.0