public void set ( int index , byte value ) { Preconditions . checkState ( ! this . readOnly , "Cannot modify a read-only ByteArraySegment." ) ; Preconditions . checkElementIndex ( index , this . length , "index" ) ; this . array [ index + this . startOffset ] = value ; }
Sets the value at the specified index .