public void set(long index, long value) {
        int segmentIndex = (int)(index >> log2OfSegmentSize);
        
        if(segmentIndex >= segments.length) {
            int nextPowerOfTwo = 1 << (32 - Integer.numberOfLeadingZeros(segmentIndex));
            segments = Arrays.copyOf(segments, nextPowerOfTwo);
        }
        
        if(segments[segmentIndex] == null) {
            segments[segmentIndex] = memoryRecycler.getLongArray();
        }
        
        int longInSegment = (int)(index & bitmask);
        segments[segmentIndex][longInSegment] = value;
    }
public void set ( long index , long value ) { int segmentIndex = ( int ) ( index > > log2OfSegmentSize ) ; if ( segmentIndex >= segments . length ) { int nextPowerOfTwo = 1 << ( 32 - Integer . numberOfLeadingZeros ( segmentIndex ) ) ; segments = Arrays . copyOf ( segments , nextPowerOfTwo ) ; } if ( segments [ segmentIndex ] == null ) { segments [ segmentIndex ] = memoryRecycler . getLongArray ( ) ; } int longInSegment = ( int ) ( index & bitmask ) ; segments [ segmentIndex ] [ longInSegment ] = value ; }
Set the byte at the given index to the specified value
@param index the index
@param value the byte