
uk.co.real_logic.sbe.ir.generated.MessageHeaderDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sbe Show documentation
Show all versions of sbe Show documentation
FIX/SBE - OSI layer 6 presentation for encoding and decoding application messages in binary format for
low-latency applications
The newest version!
/* Generated SBE (Simple Binary Encoding) message codec */
package uk.co.real_logic.sbe.ir.generated;
import uk.co.real_logic.sbe.codec.java.*;
import uk.co.real_logic.agrona.DirectBuffer;
public class MessageHeaderDecoder
{
public static final int ENCODED_LENGTH = 8;
private DirectBuffer buffer;
private int offset;
public MessageHeaderDecoder wrap(final DirectBuffer buffer, final int offset)
{
this.buffer = buffer;
this.offset = offset;
return this;
}
public int encodedLength()
{
return ENCODED_LENGTH;
}
public static int blockLengthNullValue()
{
return 65535;
}
public static int blockLengthMinValue()
{
return 0;
}
public static int blockLengthMaxValue()
{
return 65534;
}
public int blockLength()
{
return CodecUtil.uint16Get(buffer, offset + 0, java.nio.ByteOrder.LITTLE_ENDIAN);
}
public static int templateIdNullValue()
{
return 65535;
}
public static int templateIdMinValue()
{
return 0;
}
public static int templateIdMaxValue()
{
return 65534;
}
public int templateId()
{
return CodecUtil.uint16Get(buffer, offset + 2, java.nio.ByteOrder.LITTLE_ENDIAN);
}
public static int schemaIdNullValue()
{
return 65535;
}
public static int schemaIdMinValue()
{
return 0;
}
public static int schemaIdMaxValue()
{
return 65534;
}
public int schemaId()
{
return CodecUtil.uint16Get(buffer, offset + 4, java.nio.ByteOrder.LITTLE_ENDIAN);
}
public static int versionNullValue()
{
return 65535;
}
public static int versionMinValue()
{
return 0;
}
public static int versionMaxValue()
{
return 65534;
}
public int version()
{
return CodecUtil.uint16Get(buffer, offset + 6, java.nio.ByteOrder.LITTLE_ENDIAN);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy