core :: Writer :: write_block
text
To be used with Reader::read_block
.
Compared to write_string
, this method supports null bytes in text
.
# Write the length as a 64 bits integer, then the content of `text`
#
# To be used with `Reader::read_block`.
#
# Compared to `write_string`, this method supports null bytes in `text`.
fun write_block(text: Text)
do
write_int64 text.byte_length
write text
end
lib/binary/binary.nit:103,2--112,4