@FunctionalInterface public interface ReservedValueSupplier
ByteOrder.LITTLE_ENDIAN format.
This will be called as the last action of encoding a data frame right before the length is set. All other fields in the header plus the body of the frame will have been written at the point of supply.
The reserved value can be used for carrying out of band data with message fragments such a checksums or timestamps.
| Modifier and Type | Method and Description |
|---|---|
long |
get(DirectBuffer termBuffer,
int termOffset,
int frameLength)
Callback to provide the reserved value to be encoded with each message fragment as the last action
before the length field is set which commits the fragment for sending to the media.
|
long get(DirectBuffer termBuffer, int termOffset, int frameLength)
termBuffer - containing the encoding message fragment.termOffset - at which the header of the frame begins.frameLength - Total length of the frame including header.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.