Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for umask (0.02 sec)

  1. src/main/java/jcifs/pac/PacDataInputStream.java

         * @param mask the alignment mask (typically 2, 4, or 8)
         * @throws IOException if an I/O error occurs
         */
        public void align(final int mask) throws IOException {
            final int position = this.size - this.dis.available();
            final int shift = position & mask - 1;
            if (mask != 0 && shift != 0) {
                this.dis.skip(mask - shift);
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/ACE.java

     * and access mask of each ACE. If the SID matches, the allow/deny flags
     * and access mask are considered. If the ACE is a "deny"
     * ACE and <i>any</i> of the desired access bits match bits in the access
     * mask of the ACE, the whole access check fails. If the ACE is an "allow"
     * ACE and <i>all</i> of the bits in the desired access bits match bits in
     * the access mask of the ACE, the access check is successful. Otherwise,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/dtyp/ACE.java

     * and access mask of each ACE. If the SID matches, the allow/deny flags
     * and access mask are considered. If the ACE is a "deny"
     * ACE and <i>any</i> of the desired access bits match bits in the access
     * mask of the ACE, the whole access check fails. If the ACE is an "allow"
     * ACE and <i>all</i> of the bits in the desired access bits match bits in
     * the access mask of the ACE, the access check is successful. Otherwise,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/ACE.java

     * and access mask of each ACE. If the SID matches, the allow/deny flags
     * and access mask are considered. If the ACE is a "deny"
     * ACE and <i>any</i> of the desired access bits match bits in the access
     * mask of the ACE, the whole access check fails. If the ACE is an "allow"
     * ACE and <i>all</i> of the bits in the desired access bits match bits in
     * the access mask of the ACE, the access check is successful. Otherwise,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dtyp/ACETest.java

            testBuffer[2] = 0x20; // Size low byte (32)
            testBuffer[3] = 0x00; // Size high byte
            testBuffer[4] = (byte) 0xA9; // Access mask byte 0
            testBuffer[5] = 0x00; // Access mask byte 1
            testBuffer[6] = 0x12; // Access mask byte 2
            testBuffer[7] = 0x00; // Access mask byte 3
    
            // Add minimal SID data (S-1-1-0 - Everyone)
            testBuffer[8] = 0x01; // Revision
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ACETest.java

            }
    
            @Test
            @DisplayName("Should handle zero access mask")
            void shouldHandleZeroAccessMask() {
                ACE ace = mock(ACE.class);
                when(ace.getAccessMask()).thenReturn(0);
    
                int mask = ace.getAccessMask();
                assertEquals(0, mask, "getAccessMask() should return 0 when configured");
                verify(ace).getAccessMask();
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java

         * @return the lease flags
         */
        public int getLeaseFlags() {
            return flags;
        }
    
        /**
         * Gets the access mask hint for optimizing lease handling
         * @return the access mask hint
         */
        public int getAccessMaskHint() {
            return accessMaskHint;
        }
    
        /**
         * Gets the share access hint for optimizing lease handling
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

    class NdrShortTest {
    
        @Mock
        private NdrBuffer mockBuffer;
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @ParameterizedTest
            @DisplayName("Should mask input values with 0xFF correctly")
            @ValueSource(ints = { 0, 1, 127, 128, 255, 256, -1, -128, -255, -256, 32767, -32768, 65535, 65536 })
            void testConstructorMasking(int inputValue) {
                // Given: An input value
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        int[] expected = new int[256];
        for (int i = 0; i < expected.length; i++) {
          int crc = i;
          for (int j = 7; j >= 0; j--) {
            int mask = -(crc & 1);
            crc = (crc >>> 1) ^ (CRC32C_GENERATOR_FLIPPED & mask);
          }
          expected[i] = crc;
        }
    
        int[] actual = Crc32cHashFunction.Crc32cHasher.byteTable;
        assertTrue(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java

    import jcifs.SmbConstants;
    
    /**
     * Basic unit tests for {@link SmbConstants}.  The interface only
     * provides {@code static final} constants, so the test suite focuses on
     * value correctness, bit‑mask logic, and some derived properties.
     *
     * <p>Mockito is exercised in a dummy scenario to satisfy the
     * request for an interaction test.  The mock represents a
     * {@code SmbTransport} collaborator and is used only for
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top