Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 293 for 0xf0 (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            }
        }
    
        @Test
        @DisplayName("Test setFileInfoClass method")
        void testSetFileInfoClass() {
            request = new Smb2SetInfoRequest(mockConfig);
            byte testFileInfoClass = (byte) 0x10;
    
            request.setFileInfoClass(testFileInfoClass);
    
            // Verify file info class was set
            Field fileInfoClassField;
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

                msrpcShareGetInfo.getSecurity();
            });
        }
    
        @Test
        void testInheritedFields() throws Exception {
            // Verify inherited fields are properly set
            assertEquals(0x10, msrpcShareGetInfo.getOpnum());
    
            // Test that the info field is properly initialized
            Field infoField = msrpcShareGetInfo.getClass().getSuperclass().getDeclaredField("info");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            int bytesWritten = transaction.writeParameterWordsWireFormat(dst, 0);
    
            // Verify the bytes written
            assertTrue(bytesWritten > 0);
    
            // For secondary, first byte should be 0x00 (Reserved)
            assertEquals(0, dst[0]);
    
            // Verify reserved bytes
            assertEquals(0, dst[1]);
            assertEquals(0, dst[2]);
    
            // Verify total parameter count (4 bytes at position 3)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                                 * because it specifies addr
                                 */
                request.addr = addr; /* if addr ends with 255 flag it bcast */
                request.isBroadcast = addr.getAddress()[3] == (byte) 0xFF;
    
                n = RETRY_COUNT;
                do {
                    try {
                        send(request, response, RETRY_TIMEOUT);
                    } catch (final IOException ioe) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            assertArrayEquals(expectedBytes, actualBytes);
    
            // Verify it's actually UTF-16LE (each ASCII char should be followed by 0x00)
            int pathStart = Smb2Constants.SMB2_HEADER_LENGTH + 8;
            for (int i = 0; i < testPath.length(); i++) {
                char c = testPath.charAt(i);
                if (c < 128) { // ASCII character
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SpnegoContext.java

        }
    
        private static SpnegoToken getToken(final byte[] token) throws SpnegoException {
            SpnegoToken spnegoToken = null;
            try {
                spnegoToken = switch (token[0]) {
                case (byte) 0x60 -> new NegTokenInit(token);
                case (byte) 0xa1 -> new NegTokenTarg(token);
                default -> throw new SpnegoException("Invalid token type");
                };
                return spnegoToken;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

          // TODO(cpovirk): Use SourceCodeEscapers if it is added to Guava.
          StringBuilder escapedInput = new StringBuilder();
          for (char c : input.toCharArray()) {
            if (c >= 0x20 && c <= 0x7E) {
              escapedInput.append(c);
            } else {
              escapedInput.append(String.format("\\u%04x", (int) c));
            }
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            assertTrue(workgroupLike.isWorkgroup());
    
            // Server: return a NetBIOS type not 0x1d/0x1b
            when(nb.getNameType()).thenReturn(0x20);
            SmbResourceLocatorImpl server = locator("smb://server");
            when(nsc.getAllByName(eq("server"), eq(true))).thenReturn(new Address[] { addr });
            assertEquals(SmbConstants.TYPE_SERVER, server.getType());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

        }
    
        @Test
        @DisplayName("setFileId should update file ID")
        void testSetFileId() throws Exception {
            byte[] newFileId = new byte[16];
            Arrays.fill(newFileId, (byte) 0xFF);
    
            request.setFileId(newFileId);
    
            Field fileIdField = Smb2CloseRequest.class.getDeclaredField("fileId");
            fileIdField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            h[1] = (byte) ((length >> 16) & 0x01);
            h[2] = (byte) ((length >> 8) & 0xFF);
            h[3] = (byte) (length & 0xFF);
            return h;
        }
    
        /**
         * Creates a NetBIOS keep-alive header.
         * Keep-alive packets have type 0x85 and zero length.
         */
        private static byte[] keepAliveHeader() {
            byte[] h = new byte[4];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top