Method: Spark::CoreExtension::IO::InstanceMethods#write_string

Defined in:
lib/spark/ext/io.rb

#write_string(data) ⇒ Object

Size and data can have different encoding Marshal: both ASCII Oj: ASCII and UTF-8



47
48
49
50
# File 'lib/spark/ext/io.rb', line 47

def write_string(data)
  write_int(data.bytesize)
  write(data)
end