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