Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for bitSize (0.06 sec)

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

       * @since 22.0
       */
      public long approximateElementCount() {
        long bitSize = bits.bitSize();
        long bitCount = bits.bitCount();
    
        /*
         * Each insertion is expected to reduce the # of clear bits by a factor of
         * `numHashFunctions/bitSize`. So, after n insertions, expected bitCount is `bitSize * (1 - (1 -
         * numHashFunctions/bitSize)^n)`. Solving that for n, and approximating `ln x` as `x - 1` when x
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        numBits++;
    
        LockFreeBitArray bitArray = new LockFreeBitArray(numBits);
        assertTrue(
            "BitArray.bitSize() must return a positive number, but was " + bitArray.bitSize(),
            bitArray.bitSize() > 0);
    
        // Ideally we would also test the bitSize() overflow of this BF, but it runs out of heap space
        // BloomFilter.create(Funnels.unencodedCharsFunnel(), 244412641, 1e-11);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        numBits++;
    
        LockFreeBitArray bitArray = new LockFreeBitArray(numBits);
        assertTrue(
            "BitArray.bitSize() must return a positive number, but was " + bitArray.bitSize(),
            bitArray.bitSize() > 0);
    
        // Ideally we would also test the bitSize() overflow of this BF, but it runs out of heap space
        // BloomFilter.create(Funnels.unencodedCharsFunnel(), 244412641, 1e-11);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java

        }
    
        @Test
        @DisplayName("Test combining security info flags")
        void testCombiningFlags() {
            // Test that flags can be combined using bitwise OR
            int combined = SecurityInfo.OWNER_SECURITY_INFO | SecurityInfo.GROUP_SECURITY_INFO;
            assertEquals(0x3, combined);
    
            combined = SecurityInfo.DACL_SECURITY_INFO | SecurityInfo.SACL_SECURITY_INFO;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/DosFileFilterTest.java

        }
    
        /**
         * Parameterized test for the {@link DosFileFilter#accept(SmbFile)} method.
         * This test covers various combinations of file attributes and filter attributes
         * to ensure the bitwise logic is correctly implemented.
         *
         * @param filterAttributes The attributes set for the filter.
         * @param fileAttributes The attributes of the mock file.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

                assertNotEquals(Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED, Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED,
                        "Signing flags must be distinct");
    
                // Verify they can be combined with bitwise OR
                int combined = Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED | Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED;
                assertEquals(0x0003, combined, "Combined signing flags should equal 0x0003");
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbNamedPipe.java

        /**
         * Open the Named Pipe resource specified by the url
         * parameter. The pipeType parameter should be at least one of
         * the <code>PIPE_TYPE</code> flags combined with the bitwise OR
         * operator <code>|</code>. See the examples listed above.
         *
         * @param url the SMB URL for the named pipe
         * @param pipeType the type of the pipe
         * @param unshared
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ACETest.java

                assertEquals(0x10, ACE.FLAGS_INHERITED, "FLAGS_INHERITED should be 0x10");
            }
        }
    
        @Nested
        @DisplayName("Bitwise Operations Tests")
        class BitwiseOperationsTests {
    
            @Test
            @DisplayName("Should support bitwise operations for access mask combining")
            void shouldSupportBitwiseOperations() {
                // Test combining read and write permissions
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ACE.java

        /**
         * Returns the access mask associated with this ACE. Use the
         * constants for <code>FILE_READ_DATA</code>, <code>FILE_WRITE_DATA</code>,
         * <code>READ_CONTROL</code>, <code>GENERIC_ALL</code>, etc with bitwise
         * operators to determine which bits of the mask are on or off.
         *
         * @return the access mask
         */
        int getAccessMask();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java

        int pipeType;
    
        /**
         * Open the Named Pipe resource specified by the url
         * parameter. The pipeType parameter should be at least one of
         * the <code>PIPE_TYPE</code> flags combined with the bitwise OR
         * operator <code>|</code>. See the examples listed above.
         */
    
        /**
         * Constructs an SmbNamedPipe for a specified pipe on an SMB server.
         *
         * @param url the SMB URL of the named pipe
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top