code: void writeArrayHeader(int size) throws IOException {
          if (size < 16) {
              output.writeByte(MIN_FIX_ARRAY + size);
          } else if (size < 65536) {
              output.writeByte(ARRAY_16);
              output.writeShort(size);
          } else {
              output.writeByte(ARRAY_32);
              output.writeInt(size);
          }
      }
docs: Writes a MessagePack array header.
  
  @param size  the size
  @throws IOException if an error occurs