code: public static boolean bitGet(MemorySegment[] segments, int baseOffset, int index) {
  		int offset = baseOffset + ((index & BIT_BYTE_POSITION_MASK) >>> 3);
  		byte current = getByte(segments, offset);
  		return (current & (1 << (index & BIT_BYTE_INDEX_MASK))) != 0;
  	}
docs: read bit from segments.
  
  @param segments target segments.
  @param baseOffset bits base offset.
  @param index bit index from base offset.