public Serializer serializeTransferableArray(final Transferable<?>[] transferables, final int start,
            final int count, final Size arrayLengthSize) throws SerializationException {
        if (transferables == null) {
            serializeInt(Size.NULL_ARRAY_ID, arrayLengthSize);
            return this;
        }
        final int length = start + count;
        arrayLengthSize.validateArrayLengthToSerialize(length);
        serializeInt(length, arrayLengthSize);
        for (int index = start; index < length; index++) {
            serializeTransferable(transferables[index]);
        }
        return this;
    }
public Serializer serializeTransferableArray ( final Transferable < ? > [ ] transferables , final int start , final int count , final Size arrayLengthSize ) throws SerializationException { if ( transferables == null ) { serializeInt ( Size . NULL_ARRAY_ID , arrayLengthSize ) ; return this ; } final int length = start + count ; arrayLengthSize . validateArrayLengthToSerialize ( length ) ; serializeInt ( length , arrayLengthSize ) ; for ( int index = start ; index < length ; index ++ ) { serializeTransferable ( transferables [ index ] ) ; } return this ; }
@param transferables will be serialized. None of the transferables can be null.
@param start index from which the transferables should be serialized.
@param count amount of transferables to serialize.
@param arrayLengthSize estimated amount of bytes needed to store length of the array.
@throws SerializationException is array length size is too small to store array's length or if unable to
serialize any of the transferables.
@return this (for chaining).