# File lib/bson/byte_buffer.rb, line 181
    def ==(other)
      other.respond_to?(:to_s) && @str == other.to_s
    end