Write text in str8 format, max of 0xFF bytes

Require: text.byte_length <= 0xFF

Property definitions

msgpack :: write $ Writer :: write_msgpack_str8
	# Write `text` in _str8_ format, max of 0xFF bytes
	#
	# Require: `text.byte_length <= 0xFF`
	fun write_msgpack_str8(text: Text)
	do
		var len = text.byte_length
		assert len <= 0xFF

		write_byte 0xD9
		write_byte len
		write text
	end
lib/msgpack/write.nit:186,2--197,4