- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for bitSize (2.48 sec)
-
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 19:23:59 UTC 2025 - 26.9K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 22.1K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.5K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
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 unsharedRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.2K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.4K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.1K bytes - Viewed (0) -
docs/en/docs/python-types.md
In Python 3.10 there's also a **new syntax** where you can put the possible types separated by a <abbr title='also called "bitwise or operator", but that meaning is not relevant here'>vertical bar (`|`)</abbr>. //// tab | Python 3.10+ ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial008b_py310.py!} ``` ////
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 15.6K bytes - Viewed (0) -
cmd/api-router.go
// and body are traced. traceHdrsS3HFlag // when provided, disables throttling via the `maxClients` middleware. noThrottleS3HFlag ) func (h s3HFlag) has(flag s3HFlag) bool { // Use bitwise-AND and check if the result is non-zero. return h&flag != 0 } // s3APIMiddleware - performs some common handler functionality for S3 API // handlers. //
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 24 04:05:19 UTC 2025 - 23.3K bytes - Viewed (0)