Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for getLong (0.11 sec)

  1. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/Dfs.java

            }
        }
    
        static LogStream log = LogStream.getInstance();
        static final boolean strictView = Config.getBoolean("jcifs.smb1.smb.client.dfs.strictView", false);
        static final long TTL = Config.getLong("jcifs.smb1.smb.client.dfs.ttl", 300);
        static final boolean DISABLED = Config.getBoolean("jcifs.smb1.smb.client.dfs.disabled", false);
    
        /**
         * Sentinel cache entry indicating a negative cache result
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/Config.java

         * @param def the default value to return if the property is not found or cannot be parsed
         * @return the property value as a long, or the default value
         */
    
        public static long getLong(final String key, long def) {
            final String s = prp.getProperty(key);
            if (s != null) {
                try {
                    def = Long.parseLong(s);
                } catch (final NumberFormatException nfe) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            ByteBuffer buffer2 = ByteBuffer.wrap(nonce2, 0, 8).order(java.nio.ByteOrder.LITTLE_ENDIAN);
            long counter1 = buffer1.getLong();
            long counter2 = buffer2.getLong();
    
            assertEquals(counter1 + 1, counter2, "CCM counter should increment between nonces");
        }
    
        @Test
        @DisplayName("Should generate multiple unique nonces without collision")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFile.java

                Class.forName("jcifs.smb1.Config");
            } catch (final ClassNotFoundException cnfe) {
                logger.error("Failed to load jcifs.smb1.Config class", cnfe);
            }
            attrExpirationPeriod = Config.getLong("jcifs.smb1.smb.client.attrExpirationPeriod", DEFAULT_ATTR_EXPIRATION_PERIOD);
            ignoreCopyToException = Config.getBoolean("jcifs.smb1.smb.client.ignoreCopyToException", true);
            dfs = new Dfs();
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SIDTest.java

        @Test
        void testToDisplayStringUnresolved() throws SmbException {
            SID sid = new SID(adminSidString);
            assertEquals(adminSidString, sid.toDisplayString());
        }
    
        /**
         * Test getting the domain SID.
         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
        void testGetDomainSid() throws SmbException {
            // Create a mock RPC SID to simulate a user SID
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
Back to top