# File lib/bson/byte_buffer.rb, line 67 def self.serialize_cstr(buf, val) buf.append!(to_utf8_binary(val.to_s)) buf.append!(NULL_BYTE) end