Interface WritableComponentProcessor<E extends Exception>

    • Method Detail

      • process

        boolean process​(int index,
                        WritableComponent component)
                 throws E extends Exception
        Process the given component at the given index in the Buffer.forEachWritable(int, WritableComponentProcessor) iteration}.

        The component object itself is only valid during this call, but the byte buffers, arrays, and native address pointers obtained from it, will be valid until any ownership requiring operation is performed on the buffer.

        Parameters:
        index - The current index of the given buffer component, based on the initial index passed to the Buffer.forEachWritable(int, WritableComponentProcessor) method.
        component - The current buffer component being processed.
        Returns:
        true if the iteration should continue and more components should be processed, otherwise false to stop the iteration early.
        Throws:
        E extends Exception