public class OtfHeaderDecoder extends Object
Metadata is cached to improve the performance of decoding headers.
This class is thread safe.
| Constructor and Description |
|---|
OtfHeaderDecoder(HeaderStructure headerStructure)
Read the message header structure and cache the meta data for finding the key fields for decoding messages.
|
| Modifier and Type | Method and Description |
|---|---|
int |
encodedLength()
The encodedLength of the message header in bytes.
|
int |
getBlockLength(DirectBuffer buffer,
int bufferOffset)
Get the block length of the root block in the message.
|
int |
getSchemaId(DirectBuffer buffer,
int bufferOffset)
Get the schema id number from the message header.
|
int |
getSchemaVersion(DirectBuffer buffer,
int bufferOffset)
Get the schema version number from the message header.
|
int |
getTemplateId(DirectBuffer buffer,
int bufferOffset)
Get the template id from the message header.
|
public OtfHeaderDecoder(HeaderStructure headerStructure)
headerStructure - for the meta data describing the message header.public int encodedLength()
public int getBlockLength(DirectBuffer buffer, int bufferOffset)
buffer - from which to read the value.bufferOffset - in the buffer at which the message header begins.public int getTemplateId(DirectBuffer buffer, int bufferOffset)
buffer - from which to read the value.bufferOffset - in the buffer at which the message header begins.public int getSchemaId(DirectBuffer buffer, int bufferOffset)
buffer - from which to read the value.bufferOffset - in the buffer at which the message header begins.public int getSchemaVersion(DirectBuffer buffer, int bufferOffset)
buffer - from which to read the value.bufferOffset - in the buffer at which the message header begins.Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.