Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 161 for getLong (0.03 sec)

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

        if (usingVarHandle != null) {
          return usingVarHandle;
        }
    
        try {
          /*
           * UnsafeByteArray uses Unsafe.getLong() in an unsupported way, which is known to cause
           * crashes on Android when running in 32-bit mode. For maximum safety, we shouldn't use
           * Unsafe.getLong() at all, but the performance benefit on x86_64 is too great to ignore, so
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ConfigTest.java

        }
    
        @Test
        @DisplayName("Should get long property with default value")
        void testGetLongWithDefault() {
            assertEquals(1234567890123L, Config.getLong(testProperties, "test.long", 0L));
            assertEquals(987654321L, Config.getLong(testProperties, "nonexistent.long", 987654321L));
        }
    
        @Test
        @DisplayName("Should get InetAddress property with default value")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java

          super(CHUNK_SIZE);
          this.h1 = seed;
          this.h2 = seed;
          this.length = 0;
        }
    
        @Override
        protected void process(ByteBuffer bb) {
          long k1 = bb.getLong();
          long k2 = bb.getLong();
          bmix64(k1, k2);
          length += CHUNK_SIZE;
        }
    
        private void bmix64(long k1, long k2) {
          h1 ^= mixK1(k1);
    
          h1 = Long.rotateLeft(h1, 27);
          h1 += h2;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

            // The last 8 bytes are read as big-endian (network byte order for the high/low parts)
            ByteBuffer bb2 = ByteBuffer.wrap(bytes, 8, 8).order(java.nio.ByteOrder.BIG_ENDIAN);
            long data4 = bb2.getLong();
    
            // Construct UUID from components - Java UUID expects big-endian representation
            long mostSig = ((long) data1 << 32) | ((long) (data2 & 0xFFFF) << 16) | (data3 & 0xFFFF);
            long leastSig = data4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/SipHashFunction.java

          this.v0 ^= k0;
          this.v1 ^= k1;
          this.v2 ^= k0;
          this.v3 ^= k1;
        }
    
        @Override
        protected void process(ByteBuffer buffer) {
          b += CHUNK_SIZE;
          processM(buffer.getLong());
        }
    
        @Override
        protected void processRemaining(ByteBuffer buffer) {
          b += buffer.remaining();
          for (int i = 0; buffer.hasRemaining(); i += 8) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/mylasta/action/FessLabelsTest.java

            assertTrue(Modifier.isPrivate(serialVersionField.getModifiers()));
            serialVersionField.setAccessible(true);
            assertEquals(1L, serialVersionField.getLong(null));
        }
    
        /**
         * Test that all label constants follow the naming convention
         */
        public void test_labelConstantsNamingConvention() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/DfsTest.java

            configMockedStatic = mockStatic(Config.class);
            lenient().when(Config.getBoolean("jcifs.smb1.smb.client.dfs.strictView", false)).thenReturn(false);
            lenient().when(Config.getLong("jcifs.smb1.smb.client.dfs.ttl", 300)).thenReturn(300L);
            lenient().when(Config.getBoolean("jcifs.smb1.smb.client.dfs.disabled", false)).thenReturn(false);
        }
    
        @AfterEach
        void tearDown() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

            int capability = bb.getInt();
    
            // Reserved (4 bytes) - skip
            bb.getInt();
    
            // LinkSpeed (8 bytes) - in bits per second
            long linkSpeedBps = bb.getLong();
    
            // Parse sockaddr structure (starts at offset + 24)
            InetAddress addr = parseSockaddr(data, offset + 24);
    
            if (addr == null) {
                return null;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/Config.java

         * @param def the default value to return if key is not found or cannot be parsed
         * @return the long value of the property or the default value
         */
        public static long getLong(final Properties props, final String key, long def) {
            final String s = props.getProperty(key);
            if (s != null) {
                try {
                    def = Long.parseLong(s);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  10. docs/smb3-features/02-persistent-handles-design.md

            if (bytes.length != 16) {
                throw new IllegalArgumentException("GUID must be 16 bytes");
            }
            ByteBuffer bb = ByteBuffer.wrap(bytes);
            long mostSig = bb.getLong();
            long leastSig = bb.getLong();
            this.guid = new UUID(mostSig, leastSig);
        }
        
        public byte[] toBytes() {
            ByteBuffer bb = ByteBuffer.allocate(16);
            bb.putLong(guid.getMostSignificantBits());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
Back to top