/** * Get the schema version number from the message header. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the value of the schema version number. */ public int getSchemaVersion(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + schemaVersionOffset, schemaVersionType, schemaVersionByteOrder); }
/** * Get the template id from the message header. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the value of the template id. */ public int getTemplateId(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + templateIdOffset, templateIdType, templateIdByteOrder); }
/** * Get the block length of the root block in the message. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the length of the root block in the coming message. */ public int getBlockLength(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + blockLengthOffset, blockLengthType, blockLengthByteOrder); } }
/** * Get the schema id number from the message header. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the value of the schema id number. */ public int getSchemaId(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + schemaIdOffset, schemaIdType, schemaIdByteOrder); }
final int length = isPresent ? Types.getInt( buffer, bufferOffset + lengthToken.offset(),
/** * Get the template id from the message header. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the value of the template id. */ public int getTemplateId(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + templateIdOffset, templateIdType, templateIdByteOrder); }
/** * Get the schema version number from the message header. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the value of the schema version number. */ public int getSchemaVersion(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + schemaVersionOffset, schemaVersionType, schemaVersionByteOrder); }
/** * Get the schema id number from the message header. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the value of the schema id number. */ public int getSchemaId(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + schemaIdOffset, schemaIdType, schemaIdByteOrder); }
/** * Get the schema id number from the message header. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the value of the schema id number. */ public int getSchemaId(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + schemaIdOffset, schemaIdType, schemaIdByteOrder); }
/** * Get the schema version number from the message header. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the value of the schema version number. */ public int getSchemaVersion(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + schemaVersionOffset, schemaVersionType, schemaVersionByteOrder); }
/** * Get the block length of the root block in the message. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the length of the root block in the coming message. */ public int getBlockLength(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + blockLengthOffset, blockLengthType, blockLengthByteOrder); } }
/** * Get the template id from the message header. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the value of the template id. */ public int getTemplateId(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + templateIdOffset, templateIdType, templateIdByteOrder); }
/** * Get the block length of the root block in the message. * * @param buffer from which to read the value. * @param bufferOffset in the buffer at which the message header begins. * @return the length of the root block in the coming message. */ public int getBlockLength(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + blockLengthOffset, blockLengthType, blockLengthByteOrder); } }
final int length = isPresent ? Types.getInt( buffer, bufferOffset + lengthToken.offset(),
final int length = isPresent ? Types.getInt( buffer, bufferOffset + lengthToken.offset(),