Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 629 for flags (0.03 sec)

  1. src/archive/zip/writer_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	for i, test := range utf8Tests {
    		flags := r.File[i].Flags
    		if flags != test.flags {
    			t.Errorf("CreateHeader(name=%q comment=%q nonUTF8=%v): flags=%#x, want %#x", test.name, test.comment, test.nonUTF8, flags, test.flags)
    		}
    	}
    }
    
    func TestWriterTime(t *testing.T) {
    	var buf bytes.Buffer
    	h := &FileHeader{
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

            @DisplayName("Should encode consistently with various flag values")
            @ValueSource(ints = { 0, 1, 2, 4, 16, 0xFF, 0xFFFF, 0xFFFFFF, 0x7FFFFFFF, -1 })
            void testEncodingWithVariousFlags(int flags) {
                lock = new Smb2Lock(1024L, 2048L, flags);
                int encoded = lock.encode(buffer, 0);
    
                assertEquals(24, encoded);
                assertEquals(flags, SMBUtil.readInt4(buffer, 16));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dtyp/ACETest.java

        }
    
        @Test
        @DisplayName("Test all flag combinations for inheritance")
        void testAllFlagCombinationsForInheritance() {
            // Test each individual flag
            ace.flags = ACE.FLAGS_OBJECT_INHERIT;
            assertFalse(ace.isInherited());
    
            ace.flags = ACE.FLAGS_CONTAINER_INHERIT;
            assertFalse(ace.isInherited());
    
            ace.flags = ACE.FLAGS_NO_PROPAGATE;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java

            // These tests should be removed or replaced with actual constants
        }
    
        /**
         * Test individual FLAGS2 constants.
         */
        @Test
        @DisplayName("FLAGS2 individual constants are correct")
        void flags2ConstantsTest() {
            // Test individual flag values
            assertEquals(0x0001, SmbConstants.FLAGS2_LONG_FILENAMES);
            assertEquals(0x0002, SmbConstants.FLAGS2_EXTENDED_ATTRIBUTES);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

        void testType1MessageWithFlags() {
            // Given
            int flags =
                    NtlmFlags.NTLMSSP_NEGOTIATE_UNICODE | NtlmFlags.NTLMSSP_NEGOTIATE_NTLM | NtlmFlags.NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED;
    
            // When
            Type1Message type1 = new Type1Message(mockContext, flags, null, null);
    
            // Then
            // Note: Constructor sets default flags OR'd with provided flags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbNamedPipeTest.java

            @DisplayName("Second constructor sets unshared based on flags")
            void secondCtorUnsharedFlagPath() throws Exception {
                // Arrange: include UNSHARED flag to exercise that branch
                int flags = SmbPipeResource.PIPE_TYPE_RDWR | SmbPipeResource.PIPE_TYPE_UNSHARED;
    
                // Act
                SmbNamedPipe pipe = new SmbNamedPipe("smb://server/IPC$/foo", flags, ctx());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndX.java

         * @param shareAccess the share access mode
         * @param flags the open flags
         * @param fileAttributes the file attributes
         * @param andx the next command in the chain
         */
        public SmbComOpenAndX(final Configuration config, final String fileName, final int access, final int shareAccess, final int flags,
                final int fileAttributes, final ServerMessageBlock andx) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

        /**
         * Checks if a specific flag is set
         * @param flag the flag to check
         * @return true if the flag is set, false otherwise
         */
        public boolean isFlagSet(final int flag) {
            return (flags & flag) == flag;
        }
    
        /**
         * Unsets a specific flag
         * @param flag the flag to unset
         */
        public void unsetFlag(final int flag) {
            flags &= ~flag;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/Type1Message.java

            try {
                int flags = getFlags();
                int size = 8 * 4 + ((flags & NTLMSSP_NEGOTIATE_VERSION) != 0 ? 8 : 0);
    
                byte[] domain = {};
                final String suppliedDomainString = getSuppliedDomain();
                if ((flags & NTLMSSP_NEGOTIATE_VERSION) == 0 && suppliedDomainString != null && suppliedDomainString.length() != 0) {
                    flags |= NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            for (int flag : new int[] { 0, 0xFF, 0x01, 0x80 }) {
                TestMessage m = new TestMessage();
                m.ptype = 0;
                m.flags = flag;
    
                NdrBuffer buf = new NdrBuffer(new byte[1024], 0);
                m.encode(buf);
    
                // Reset and skip to flags field
                buf.setIndex(3);
                assertEquals(flag, buf.dec_ndr_small());
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top