aeron-client/src/main/java/io/aeron/logbuffer/FrameDescriptor.java
public static void frameLengthOrdered(final UnsafeBuffer buffer, final int termOffset, final int frameLength)
    {
        int length = frameLength;
        if (ByteOrder.nativeOrder() != LITTLE_ENDIAN)
        {
            length = Integer.reverseBytes(frameLength);
        }

        buffer.putIntOrdered(termOffset, length);
    }
public static void frameLengthOrdered(final UnsafeBuffer buffer, final int termOffset, final int frameLength)
    {
        int length = frameLength;
        if (ByteOrder.nativeOrder() != LITTLE_ENDIAN)
        {
            length = Integer.reverseBytes(frameLength);
        }

        buffer.putIntOrdered(termOffset, length);
    }
public static void frameLengthOrdered ( final UnsafeBuffer buffer , final int termOffset , final int frameLength ) { int length = frameLength ; if ( ByteOrder . nativeOrder ( ) != LITTLE_ENDIAN ) { length = Integer . reverseBytes ( frameLength ) ; } buffer . putIntOrdered ( termOffset , length ) ; }
Write the length header for a frame in a memory ordered fashion.

@param buffer      containing the frame.
@param termOffset  at which a frame begins.
@param frameLength field to be set for the frame.
Write the length header for a frame in a memory ordered fashion .