ByteBuf.forEachByte

Iterates over the readable bytes of this buffer with the specified {@code processor} in ascending order.

@return {@code -1} if the processor iterated to or beyond the end of the readable bytes. The last-visited index If the {@link ByteProcessor#process(byte)} returned {@code false}.

  1. int forEachByte(ByteProcessor processor)
    class ByteBuf
    abstract
    int
    forEachByte
  2. int forEachByte(int index, int length, ByteProcessor processor)

Meta