code: @Override
      public void writeArray(Object[] array) {
          log.debug("writeArray - array: {}", array);
          if (array != null) {
              if (!checkWriteReference(array)) {
                  storeReference(array);
                  buf.put(AMF.TYPE_ARRAY);
                  buf.putInt(array.length);
                  for (Object item : array) {
                      Serializer.serialize(this, item);
                  }
              }
          } else {
              writeNull();
          }
      }
docs: {@inheritDoc}