Package io.servicetalk.buffer.api
Interface ByteProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides a mechanism to iterate over a collection of bytes.
-
Method Summary
-
Method Details
-
process
boolean process(byte value) Process bytes until returnsfalse
.- Parameters:
value
- thebyte
to process.- Returns:
true
if the consumer wants to continue the loop and handle the next byte in the buffer.false
if the consumer wants to stop handling bytes and abort the loop.
-