Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 378 for decoding (1.28 sec)

  1. src/main/java/jcifs/internal/witness/WitnessRpcMessage.java

         *
         * @param buf the NDR buffer to decode from
         * @throws NdrException if decoding fails
         */
        protected abstract void decodeWitnessParameters(NdrBuffer buf) throws NdrException;
    
        @Override
        public void encode_in(NdrBuffer buf) throws NdrException {
            encodeWitnessParameters(buf);
        }
    
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            FileEndOfFileInformation fileInfo = new FileEndOfFileInformation(endOfFile);
    
            // Test encoding
            byte[] buffer = new byte[8];
            int encoded = fileInfo.encode(buffer, 0);
            assertEquals(8, encoded);
    
            // Test decoding
            FileEndOfFileInformation decoded = new FileEndOfFileInformation();
            int decodedBytes = decoded.decode(buffer, 0, 8);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

            }
        }
    
        /**
         * Decodes a single notification from the NDR buffer.
         *
         * @param buf the NDR buffer
         * @return the decoded notification
         * @throws NdrException if decoding fails
         */
        private WitnessNotificationResponse decodeNotification(NdrBuffer buf) throws NdrException {
            WitnessNotificationResponse notification = new WitnessNotificationResponse();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

         */
        @Override
        public int getGrantedCredits() {
            return getCredit();
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws SMBProtocolDecodingException if there is an error decoding the response
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#haveResponse(byte[], int, int)
         */
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

         * Constructs KerberosEncData from encrypted token bytes.
         *
         * @param token the encrypted Kerberos token
         * @param keys map of encryption keys indexed by key type
         * @throws PACDecodingException if decoding fails
         */
        public KerberosEncData(byte[] token, Map<Integer, KerberosKey> keys) throws PACDecodingException {
            ASN1InputStream stream = new ASN1InputStream(new ByteArrayInputStream(token));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.NtStatus;
    
    /**
     * Tests for Smb2SessionSetupResponse decoding and behavior.
     */
    @ExtendWith(MockitoExtension.class)
    @DisplayName("Smb2SessionSetupResponse Tests")
    @MockitoSettings(strictness = Strictness.LENIENT)
    class Smb2SessionSetupResponseTest extends BaseTest {
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

        }
    
        @Test
        @DisplayName("Test constructor initializes with config")
        void testConstructor() {
            assertNotNull(response);
            // Command is not set in constructor, only after decoding
            assertEquals((short) 0, response.getCommand());
        }
    
        @Test
        @DisplayName("Test writeBytesWireFormat returns 0")
        void testWriteBytesWireFormat() {
            byte[] dst = new byte[1024];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            assertEquals(address, nic.getAddress());
    
            // Test scoring
            int score = nic.getScore();
            assertEquals(11000, score); // 10000 (link speed) + 1000 (RSS bonus)
    
            // Test encoding/decoding
            byte[] encoded = nic.encode();
            assertNotNull(encoded);
            assertEquals(Smb2ChannelCapabilities.NETWORK_INTERFACE_INFO_SIZE, encoded.length);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                for (int i = 0; i < cipherCount; i++) {
                    assertEquals(i + 1, SMBUtil.readInt2(buffer, 2 + (i * 2)));
                }
            }
        }
    
        @Nested
        @DisplayName("Decoding Tests")
        class DecodingTests {
    
            @Test
            @DisplayName("Should decode single cipher correctly")
            void testDecodeSingleCipher() throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java

         */
        public void setNotificationFilter(int notificationFilter) {
            this.notificationFilter = notificationFilter;
        }
    
        /**
         * Get the standard lease size for encoding/decoding
         * @return the standard lease context size
         */
        protected int getStandardLeaseSize() {
            // Standard lease V2 size: LeaseKey(16) + LeaseState(4) + Flags(4) + reserved fields
            return 32;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top