Write an array header for len items in the shortest possible MessagePack array format

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

Require: len <= 0xFFFF_FFFF

Property definitions

msgpack :: write $ Writer :: write_msgpack_array
	# Write an array header for `len` items in the shortest possible MessagePack _array_ format
	#
	# After writing the header, clients should write the array items.
	#
	# Require: `len <= 0xFFFF_FFFF`
	fun write_msgpack_array(len: Int)
	do
		if len <= 0x0F then
			write_msgpack_fixarray len
		else if len <= 0xFFFF then
			write_msgpack_array16 len
		else if len <= 0xFFFF_FFFF then
			write_msgpack_array32 len
		else
			abort
		end
	end
lib/msgpack/write.nit:291,2--307,4