static int encodeLogHeader(
        final MutableDirectBuffer encodingBuffer, final int offset, final int captureLength, final int length)
    {
        return internalEncodeLogHeader(encodingBuffer, offset, captureLength, length, SystemNanoClock.INSTANCE);
    }
@Test
    void encodeLogHeader()
    {
        final int offset = 12;

        final int encodedLength = internalEncodeLogHeader(buffer, offset, 100, Integer.MAX_VALUE, () -> 555_000L);

        assertEquals(LOG_HEADER_LENGTH, encodedLength);
        assertEquals(100, buffer.getInt(offset, LITTLE_ENDIAN));
        assertEquals(Integer.MAX_VALUE, buffer.getInt(offset + SIZE_OF_INT, LITTLE_ENDIAN));
        assertEquals(555_000L, buffer.getLong(offset + SIZE_OF_INT * 2, LITTLE_ENDIAN));
    }