Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for arrayBaseOffset (0.19 seconds)

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

            throw new RuntimeException("Could not initialize intrinsics", e.getCause());
          }
        }
    
        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();
          }
        }
      }
    
      /**
    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

          private static int getByteArrayBaseOffset() {
            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.
    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