Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 54 for NdrException (0.08 seconds)

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

         * Encodes a wide string pointer in NDR format.
         *
         * @param buf the NDR buffer
         * @param str the string to encode (can be null)
         * @throws NdrException if encoding fails
         */
        private void encodeWideStringPointer(NdrBuffer buf, String str) throws NdrException {
            if (str == null || str.isEmpty()) {
                buf.enc_ndr_long(0); // NULL pointer
            } else {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/dcerpc/ndr/NdrSmall.java

        public NdrSmall(final int value) {
            this.value = value & 0xFF;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_small(value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
            value = src.dec_ndr_small();
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/dcerpc/ndr/NdrHyper.java

        public NdrHyper(final long value) {
            this.value = value;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_hyper(this.value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
            this.value = src.dec_ndr_hyper();
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/dcerpc/ndr/NdrLong.java

         */
        public NdrLong(final int value) {
            this.value = value;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_long(this.value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
            this.value = src.dec_ndr_long();
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  5. src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java

            NdrHyper ndrHyper = new NdrHyper(expectedValue);
            assertEquals(expectedValue, ndrHyper.value, "Constructor should set the correct value.");
        }
    
        @Test
        void testEncode() throws NdrException {
            // Test the encode method
            long testValue = 987654321098765L;
            NdrHyper ndrHyper = new NdrHyper(testValue);
    
            // Call the encode method with the mocked NdrBuffer
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/dcerpc/ndr/NdrSmall.java

        public NdrSmall(final int value) {
            this.value = value & 0xFF;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_small(this.value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
            this.value = src.dec_ndr_small();
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

        }
    
        /**
         * Verify that encode writes the correct little-endian sequence
         * to the buffer and that alignment is respected.
         */
        @Test
        void encodeWritesCorrectBytesAndAlignment() throws NdrException {
            NdrShort ns = new NdrShort(0xABCD); // value & 0xFF => 0xCD
            buf.reset();
            int startIndex = buf.getIndex();
            ns.encode(buf);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  8. src/main/java/jcifs/dcerpc/DcerpcBind.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.dcerpc;
    
    import jcifs.dcerpc.ndr.NdrBuffer;
    import jcifs.dcerpc.ndr.NdrException;
    
    /**
     * DCE/RPC bind request message implementation.
     * This class handles the binding process for establishing DCE/RPC communication channels.
     *
     * @author mbechler
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/dcerpc/DcerpcBind.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.dcerpc;
    
    import jcifs.smb1.dcerpc.ndr.NdrBuffer;
    import jcifs.smb1.dcerpc.ndr.NdrException;
    
    /**
     * DCERPC Bind message for establishing a connection context.
     * This class handles the binding of DCERPC interfaces for RPC communication.
     */
    public class DcerpcBind extends DcerpcMessage {
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

            assertEquals(minIntValue, ndrLongMin.value, "Constructor should correctly initialize with Integer.MIN_VALUE.");
        }
    
        @Test
        void encode_shouldCallEncNdrLongWithCorrectValue() throws NdrException {
            int testValue = 98765;
            NdrLong ndrLong = new NdrLong(testValue);
    
            // Call the encode method
            ndrLong.encode(mockNdrBuffer);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top