Package io.grpc.internal
Interface CompositeReadableBuffer.ReadOperation<T>
- All Known Subinterfaces:
CompositeReadableBuffer.NoThrowReadOperation<T>
- Enclosing class:
CompositeReadableBuffer
private static interface CompositeReadableBuffer.ReadOperation<T>
A simple read operation to perform on a single
ReadableBuffer
.
All state management for the buffers is done by
CompositeReadableBuffer.execute(ReadOperation, int, Object, int)
.-
Method Summary
Modifier and TypeMethodDescriptionint
read
(ReadableBuffer buffer, int length, T dest, int value) This method can also be used to simultaneously perform operation-specific int-valued aggregation over the sequence of buffers in aCompositeReadableBuffer
.
-
Method Details
-
read
This method can also be used to simultaneously perform operation-specific int-valued aggregation over the sequence of buffers in aCompositeReadableBuffer
.value
is the return value from the prior buffer, or the "initial" value passed toexecute()
in the case of the first buffer.execute()
returns the value returned by the operation called on the last buffer.- Throws:
IOException
-