Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 344 for encodes (0.56 sec)

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

            // Now test encode
            byte[] destinationBuffer = new byte[8];
            int bytesEncoded = fileInternalInfo.encode(destinationBuffer, 0);
    
            // Verify
            assertEquals(8, bytesEncoded);
            assertEquals(expectedIndexNumber, SMBUtil.readInt8(destinationBuffer, 0));
        }
    
        @Test
        @DisplayName("Test encode with buffer offset")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                // When: Encoding array
                array.encode(mockNdrBuffer);
    
                // Then: Should encode structure
                verify(mockNdrBuffer).align(4);
                verify(mockNdrBuffer).enc_ndr_long(1);
                verify(mockNdrBuffer).enc_ndr_referent(array.entries, 1);
            }
    
            @Test
            @DisplayName("Should encode array with null entries")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

        }
    
        /**
         * Test case for the encode method.
         * Verifies that the encode method of a concrete implementation is called
         * and interacts with the NdrBuffer as expected.
         * @throws NdrException if encoding fails.
         */
        @Test
        void testEncode() throws NdrException {
            // When
            ndrObject.encode(mockBuffer);
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/ioctl/QueryNetworkInterfaceInfoRequest.java

         */
        public int size() {
            return 0;
        }
    
        /**
         * Encode this request (no-op since there's no data)
         *
         * @param dst destination buffer
         * @param dstIndex starting offset
         * @return number of bytes written (always 0)
         */
        public int encode(byte[] dst, int dstIndex) {
            // No data to encode
            return 0;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

        }
    
        @Test
        @DisplayName("byte[] ctor: top-level non-SEQUENCE triggers PACDecodingException (type mismatch)")
        void byteArrayConstructor_topLevelNotSequence_throws() throws Exception {
            // Arrange: Encoded INTEGER instead of SEQUENCE
            byte[] notASequence = new ASN1Integer(42).getEncoded();
    
            // Act + Assert
            assertThrows(PACDecodingException.class, () -> new KerberosApRequest(notASequence, null));
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SpnegoContext.java

            final byte[] mechanismListMIC = this.mechContext.calculateMIC(ml);
            if (log.isDebugEnabled()) {
                log.debug("Out Mech list " + Arrays.toString(lm));
                log.debug("Out Mech list encoded " + Hexdump.toHexString(ml));
                log.debug("Out Mech list MIC " + Hexdump.toHexString(mechanismListMIC));
            }
            return mechanismListMIC;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Given
            byte[] buffer = new byte[512];
            int headerStart = 50;
            int bodyOffset = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
    
            // Encode the full message to set headerStart
            request.encode(buffer, headerStart);
    
            // Then - verify the body was written correctly
            byte[] pathBytes = TEST_PATH.getBytes(StandardCharsets.UTF_16LE);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/av/AvTargetName.java

        }
    
        /**
         * Constructs an AvTargetName with the specified target name
         *
         * @param targetName the target name string to encode
         */
        public AvTargetName(final String targetName) {
            this(encode(targetName));
        }
    
        /**
         * Gets the target name from this AV pair
         *
         * @return the target name
         */
        public String getTargetName() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java

            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_long(level);
                final int _descr = level;
                _dst.enc_ndr_long(_descr);
                _dst.enc_ndr_referent(e, 1);
    
                if (e != null) {
                    _dst = _dst.deferred;
                    e.encode(_dst);
    
                }
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            m.encode(buf);
            assertTrue(m.alloc_hint > 0);
        }
    
        @Test
        void testEncodeWritesCorrectHeader() throws Exception {
            TestMessage m = new TestMessage();
            m.ptype = 0;
            m.flags = 0x05;
            m.call_id = 0x123;
    
            NdrBuffer buf = new NdrBuffer(new byte[1024], 0);
            m.encode(buf);
    
            // Reset to read what was written
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top