aeron-client/src/main/java/io/aeron/logbuffer/LogBufferDescriptor.java
public static int termOffset(final long rawTail, final long termLength)
    {
        final long tail = rawTail & 0xFFFF_FFFFL;

        return (int)Math.min(tail, termLength);
    }
public static int termOffset(final long rawTail, final long termLength)
    {
        final long tail = rawTail & 0xFFFF_FFFFL;

        return (int)Math.min(tail, termLength);
    }
Read the termOffset from a packed raw tail value.

@param rawTail    containing the termOffset.
@param termLength that the offset cannot exceed.
@return the termOffset value.