code: @Override
      public void writeArray(Collection<?> array) {
          if (!checkWriteReference(array)) {
              storeReference(array);
              buf.put(AMF.TYPE_ARRAY);
              buf.putInt(array.size());
              for (Object item : array) {
                  Serializer.serialize(this, item);
              }
          }
      }
docs: {@inheritDoc}