int (final IterationState it, final ByteBufferState state) { final int recordSizeInInts = state.recordSizeInInts; final int recordSizeBytes = state.recordSize; final ByteBuffer buffer = state.buffer; int consumer = 1; final int offset = recordSizeBytes * it.nextRandom(); for (int recordField = 0; recordField < recordSizeInInts; recordField++) { consumer += (int)BYTE_BUFFER_AS_INT_ARRAY_VAR_HANDLE.getVolatile(buffer, offset + recordField * Integer.BYTES); } return consumer; }