# File lib/bson/byte_buffer.rb, line 91
    def clear
      @str = ""
      @str.force_encoding('binary') if @str.respond_to?(:force_encoding)
      rewind
    end