private static long readEncodingAsLong( final DirectBuffer buffer, final int bufferIndex, final Token typeToken, final int actingVersion) { final PrimitiveValue constOrNotPresentValue = constOrNotPresentValue(typeToken, actingVersion); if (null != constOrNotPresentValue) { return constOrNotPresentValue.longValue(); } return Types.getLong(buffer, bufferIndex, typeToken.encoding()); }
/** * 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); }
Types.appendAsString(sb, buffer, index + (i * elementSize), encoding); sb.append(", ");
Types.appendAsString(output, buffer, index + (i * elementSize), encoding); output.append(", ");
/** * 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); }
private static long readEncodingAsLong( final DirectBuffer buffer, final int bufferIndex, final Token typeToken, final int actingVersion) { final PrimitiveValue constOrNotPresentValue = constOrNotPresentValue(typeToken, actingVersion); if (null != constOrNotPresentValue) { return constOrNotPresentValue.longValue(); } return Types.getLong(buffer, bufferIndex, typeToken.encoding()); } }
Types.appendAsString(output, buffer, index + (i * elementSize), encoding); output.append(", ");
/** * 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); } }
private static long readEncodingAsLong( final DirectBuffer buffer, final int bufferIndex, final Token typeToken, final int actingVersion) { final PrimitiveValue constOrNotPresentValue = constOrNotPresentValue(typeToken, actingVersion); if (null != constOrNotPresentValue) { return constOrNotPresentValue.longValue(); } return Types.getLong(buffer, bufferIndex, typeToken.encoding()); } }
Types.appendAsString(output, buffer, index + (i * elementSize), encoding); output.append(", ");
/** * 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); }
private static long readEncodingAsLong( final DirectBuffer buffer, final int bufferIndex, final Token typeToken, final int actingVersion) { final PrimitiveValue constOrNotPresentValue = constOrNotPresentValue(typeToken, actingVersion); if (null != constOrNotPresentValue) { return constOrNotPresentValue.longValue(); } return Types.getLong(buffer, bufferIndex, typeToken.encoding()); } }
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); } }