Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for arrayIndexScale (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

          }
        }
    
        static {
          theUnsafe = getUnsafe();
          BYTE_ARRAY_BASE_OFFSET = theUnsafe.arrayBaseOffset(byte[].class);
    
          // sanity check - this should never fail
          if (theUnsafe.arrayIndexScale(byte[].class) != 1) {
            throw new AssertionError();
          }
        }
      }
    
      /**
       * Fallback implementation for when VarHandle and Unsafe are not available in our current
       * environment.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/primitives/UnsignedBytes.java

            if (theUnsafe == null) {
              return OFFSET_UNSAFE_APPROACH_IS_UNAVAILABLE;
            }
    
            try {
              int offset = theUnsafe.arrayBaseOffset(byte[].class);
              int scale = theUnsafe.arrayIndexScale(byte[].class);
    
              // Use Unsafe only if we're in a 64-bit JVM with an 8-byte aligned field offset.
              if (Objects.equals(System.getProperty("sun.arch.data.model"), "64")
                  && (offset % 8) == 0
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 21K bytes
    - Click Count (0)
Back to Top