static void dissectHostName(
        final MutableDirectBuffer buffer, final int offset, final StringBuilder builder)
    {
        int absoluteOffset = offset;
        absoluteOffset += dissectLogHeader(CONTEXT, NAME_RESOLUTION_HOST_NAME, buffer, absoluteOffset, builder);

        builder.append(": durationNs=").append(buffer.getLong(absoluteOffset, LITTLE_ENDIAN));
        absoluteOffset += SIZE_OF_LONG;

        builder.append(" hostName=");
        buffer.getStringAscii(absoluteOffset, builder);
    }
@Test
    void dissectHostName()
    {
        final int offset = 8;
        final long durationNs = 32167;
        final String hostName = "some.funky.host.name";

        final int length = SIZE_OF_LONG + trailingStringLength(hostName, MAX_HOST_NAME_LENGTH);

        DriverEventEncoder.encodeHostName(buffer, offset, length, length, durationNs, hostName);
        final StringBuilder builder = new StringBuilder();
        DriverEventDissector.dissectHostName(buffer, offset, builder);

        assertThat(builder.toString(), endsWith(
            "DRIVER: NAME_RESOLUTION_HOST_NAME [32/32]: durationNs=32167 hostName=some.funky.host.name"));
    }