public class OtfHeaderDecoder extends Object
| 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 |
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.
|
int |
size()
The size of the message header in bytes.
|
public OtfHeaderDecoder(HeaderStructure headerStructure)
headerStructure - for the meta data describing the message header.public int size()
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.public int getBlockLength(DirectBuffer buffer, int bufferOffset)
buffer - from which to read the value.bufferOffset - in the buffer at which the message header begins.Copyright © 2013 Real Logic Ltd. All Rights Reserved.