Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 150 for 0xfff7 (0.04 sec)

  1. cmd/erasure-metadata-utils_test.go

    		{"a/b/c/", []int{3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 2}},
    		{"/a/b/c", []int{6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5}},
    		{string([]byte{0xff, 0xfe, 0xfd}), []int{15, 16, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}},
    	}
    
    	// Tests hashing order to be consistent.
    	for i, testCase := range testCases {
    		hashedOrder := hashOrder(testCase.objectName, 16)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. src/archive/zip/writer.go

    	switch {
    	case fh.NonUTF8:
    		fh.Flags &^= 0x800
    	case (utf8Require1 || utf8Require2) && (utf8Valid1 && utf8Valid2):
    		fh.Flags |= 0x800
    	}
    
    	fh.CreatorVersion = fh.CreatorVersion&0xff00 | zipVersion20 // preserve compatibility byte
    	fh.ReaderVersion = zipVersion20
    
    	// If Modified is set, this takes precedence over MS-DOS timestamp fields.
    	if !fh.Modified.IsZero() {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            assertTrue(str.contains("errorCode=0"));
            assertTrue(str.contains("mid=1"));
        }
    
        @Test
        void testToStringUnknownCommand() {
            smb.command = (byte) 0xFF; // Unknown command
            smb.errorCode = 0;
            smb.mid = 1;
            String str = smb.toString();
            assertTrue(str.contains("command=UNKNOWN"));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            SMBUtil.writeTime(time, buffer, bufferIndex);
            bufferIndex += 8;
            // serverTimeZone
            buffer[bufferIndex++] = (byte) 0x80;
            buffer[bufferIndex++] = (byte) 0xFF;
            // encryptionKeyLength
            buffer[bufferIndex++] = 8;
    
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
            assertEquals(34, bytesRead);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

            StringBuilder sb = new StringBuilder("WITNESS-");
            for (int i = 0; i < Math.min(contextHandle.length, 8); i++) {
                sb.append(String.format("%02X", contextHandle[i] & 0xFF));
            }
            sb.append("-").append(shareName.hashCode());
    
            return sb.toString();
        }
    
        /**
         * Checks if the client is connected to the witness service.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

         */
        private int countUniqueBytes(byte[] data) {
            boolean[] seen = new boolean[256];
            int count = 0;
    
            for (byte b : data) {
                int index = b & 0xFF;
                if (!seen[index]) {
                    seen[index] = true;
                    count++;
                }
            }
    
            return count;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/config/BaseConfiguration.java

        /** Maximum buffer size for IO operations */
        protected int maximumBufferSize = 0x10000;
        /** Maximum buffer size for SMB transaction operations */
        protected int transactionBufferSize = 0xFFFF - 512;
        /** Number of buffers to keep in cache */
        protected int bufferCacheSize = 16;
        /** Maximum size for list operations */
        protected int smbListSize = 65435;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

        @Test
        @DisplayName("Test setCommand with various SMB command codes")
        void testSetCommandWithVariousCodes() {
            // Test common SMB command codes
            int[] commandCodes = { 0x00, 0x72, 0x73, 0x74, 0x75, 0xFF };
    
            for (int command : commandCodes) {
                doNothing().when(messageBlock).setCommand(command);
                when(messageBlock.getCommand()).thenReturn(command);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            char[] plaintext = "SecureData".toCharArray();
            byte[] encrypted = storage.encryptCredentials(plaintext);
    
            // Tamper with the encrypted data
            encrypted[encrypted.length - 1] ^= 0xFF;
    
            // Should throw exception due to authentication tag failure
            assertThrows(GeneralSecurityException.class, () -> {
                storage.decryptCredentials(encrypted);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. src/bytes/bytes_test.go

    	{" ", []rune{32}, false},
    	{"ABC", []rune{65, 66, 67}, false},
    	{"abc", []rune{97, 98, 99}, false},
    	{"\u65e5\u672c\u8a9e", []rune{26085, 26412, 35486}, false},
    	{"ab\x80c", []rune{97, 98, 0xFFFD, 99}, true},
    	{"ab\xc0c", []rune{97, 98, 0xFFFD, 99}, true},
    }
    
    func TestRunes(t *testing.T) {
    	for _, tt := range RunesTests {
    		tin := []byte(tt.in)
    		a := Runes(tin)
    		if !slices.Equal(a, tt.out) {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
Back to top