void (final IterationState it, final ByteBufferState state) { final int recordSizeInInts = state.recordSizeInInts; final int recordSizeInBytes = state.recordSize; final ByteBuffer buffer = state.buffer; final int offset = recordSizeInBytes * it.nextRandom(); for (int recordField = 0; recordField < recordSizeInInts; recordField++) { int value = recordField; BYTE_BUFFER_AS_INT_ARRAY_VAR_HANDLE.setVolatile(buffer, offset + recordField * Integer.BYTES, value); } }