Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 284 for wire (0.03 sec)

  1. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            // Set zero values - for SMB times, 0 in wire format represents 0 in Java time
            SMBUtil.writeInt4(0, buffer, 0); // nextEntryOffset
            SMBUtil.writeInt4(0, buffer, 4); // fileIndex
            SMBUtil.writeInt8(0, buffer, 8); // creationTime - raw 0 in wire format
            SMBUtil.writeInt8(0, buffer, 16); // lastAccessTime - raw 0 in wire format
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            // size8 method aligns to 8-byte boundary
            int alignedSize = (expectedSize + 7) & ~7;
            assertEquals(alignedSize, size);
        }
    
        @Test
        @DisplayName("Should write correct bytes to wire format")
        void testWriteBytesWireFormat() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
            Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            assertEquals(SmbComTransaction.TRANS2_FIND_NEXT2, trans2FindNext2.getSubCommand());
            // maxParameterCount, maxDataCount, and maxSetupCount are protected fields
            // Their values are verified through the wire format methods
        }
    
        @Test
        void testReset() {
            // Test reset method updates resumeKey and filename
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                infoLevel.setAccessible(true);
                assertEquals(customLevel, infoLevel.getInt(resp));
            }
        }
    
        @Nested
        @DisplayName("Wire Format Tests")
        class WireFormatTests {
    
            @Test
            @DisplayName("Should read parameters wire format")
            void testReadParametersWireFormat() {
                byte[] buffer = new byte[10];
                int result = response.readParametersWireFormat(buffer, 0, 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

        }
    
        /**
         * Writes setup data in wire format
         * @param dst destination buffer
         * @param dstIndex starting index in destination buffer
         * @return number of bytes written
         */
        protected abstract int writeSetupWireFormat(byte[] dst, int dstIndex);
    
        /**
         * Writes parameters in wire format
         * @param dst destination buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            assertNotNull(resp);
            assertTrue(resp instanceof ServerMessageBlock2Response);
            assertTrue(resp instanceof ServerMessageBlock2);
        }
    
        @Test
        @DisplayName("Should write empty bytes to wire format")
        void testWriteBytesWireFormat() {
            // Given
            byte[] buffer = new byte[256];
            int offset = 10;
    
            // When
            int bytesWritten = response.writeBytesWireFormat(buffer, offset);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

            return 0;
        }
    
        /**
         * Writes setup data in wire format
         * @param dst destination buffer
         * @param dstIndex starting index in destination buffer
         * @return number of bytes written
         */
        protected abstract int writeSetupWireFormat(byte[] dst, int dstIndex);
    
        /**
         * Writes parameters in wire format
         * @param dst destination buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            // The size8 method aligns to 8-byte boundary
            int alignedSize = (expectedSize + 7) & ~7;
            assertEquals(alignedSize, size);
        }
    
        @Test
        @DisplayName("Should write correct bytes to wire format")
        void testWriteBytesWireFormat() {
            // Given
            byte[] buffer = new byte[512];
            int offset = 100;
            request.setNotifyFlags(Smb2ChangeNotifyRequest.SMB2_WATCH_TREE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

            transaction.setBuffer(new byte[SmbComTransaction.TRANSACTION_BUF_SIZE]);
    
            // Test parameter words wire format
            int paramWords = transaction.writeParameterWordsWireFormat(dst, 0);
            assertTrue(paramWords >= 0);
    
            // Test bytes wire format
            int bytes = transaction.writeBytesWireFormat(dst, 0);
            assertTrue(bytes >= 0);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

        @Test
        @DisplayName("Should read empty bytes from wire format")
        void testReadBytesWireFormat() {
            // Given
            request = new Smb2NegotiateRequest(mockConfig, 0);
            byte[] buffer = new byte[256];
    
            // When
            int bytesRead = request.readBytesWireFormat(buffer, 0);
    
            // Then - This is a request, so it doesn't read from wire
            assertEquals(0, bytesRead);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
Back to top