public static void bitUnSet ( MemorySegment [ ] segments , int baseOffset , int index ) { if ( segments . length == 1 ) { MemorySegment segment = segments [ 0 ] ; int offset = baseOffset + ( ( index & BIT_BYTE_POSITION_MASK ) >>> 3 ) ; byte current = segment . get ( offset ) ; current &= ~ ( 1 << ( index & BIT_BYTE_INDEX_MASK ) ) ; segment . put ( offset , current ) ; } else { bitUnSetMultiSegments ( segments , baseOffset , index ) ; } }
unset bit from segments .