Write an array header for len items, max of 0xFFFF items

After writing the header, clients should write the array items.

Require: len <= 0xFFFF

Property definitions

msgpack :: write $ Writer :: write_msgpack_array16
	# Write an array header for `len` items, max of 0xFFFF items
	#
	# After writing the header, clients should write the array items.
	#
	# Require: `len <= 0xFFFF`
	fun write_msgpack_array16(len: Int)
	do
		assert len <= 0xFFFF
		write_byte 0xDC
		write_bytes len.to_bytes(n_bytes=2)
	end
lib/msgpack/write.nit:320,2--330,4