private void msgHandler( final DirectBuffer buffer, final int offset, final int length, final Header header) { if (buffer.getByte(offset) == (byte) 'p') { timestamps[buffer.getInt(offset + 1)] = System.nanoTime() - buffer.getLong(offset + 5); } else { warmups++; } }
public static int numRequests(final DirectBuffer directBuffer, final int offset) { return directBuffer.getInt(offset + NUM_REQUESTS_FIELD_OFFSET, ByteOrder.BIG_ENDIAN); }
public static int ttl(final DirectBuffer directBuffer, final int offset) { return directBuffer.getInt(offset + TTL_FIELD_OFFSET, ByteOrder.BIG_ENDIAN); }