public void setValue(int index, int value) throws IOException {
        if (index >= structure.valueSizes.size()) {
            throw new IOException("Index " + index + " is out of range.");
        }
        Bytes.putInt(this.value, structure.valueByteOffsets.get(index), value);
    }
public void setValue ( int index , int value ) throws IOException { if ( index >= structure . valueSizes . size ( ) ) { throw new IOException ( "Index " + index + " is out of range." ) ; } Bytes . putInt ( this . value , structure . valueByteOffsets . get ( index ) , value ) ; }
Sets the value belonging to the given field.

@param index
the index of the requested field
@param value
@throws IOException