Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for dec_ndr_short (0.35 sec)

  1. src/main/java/jcifs/dcerpc/DcerpcMessage.java

            if (buf.dec_ndr_long() != 0x00000010) { /* Little-endian / ASCII / IEEE */
                throw new NdrException("Data representation not supported");
            }
            this.length = buf.dec_ndr_short();
            if (buf.dec_ndr_short() != 0) {
                throw new NdrException("DCERPC authentication not supported");
            }
            this.call_id = buf.dec_ndr_long();
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/DcerpcBind.java

            buf.enc_ndr_short(this.binding.getMajor());
            buf.enc_ndr_short(this.binding.getMinor());
            DCERPC_UUID_SYNTAX_NDR.encode(buf);
            buf.enc_ndr_long(2); /* syntax version */
        }
    
        @Override
        public void decode_out(final NdrBuffer buf) throws NdrException {
            buf.dec_ndr_short(); /* max transmit frag size */
            buf.dec_ndr_short(); /* max receive frag size */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/DcerpcBind.java

            binding.uuid.encode(buf);
            buf.enc_ndr_short(binding.major);
            buf.enc_ndr_short(binding.minor);
            DCERPC_UUID_SYNTAX_NDR.encode(buf);
            buf.enc_ndr_long(2); /* syntax version */
        }
    
        @Override
        public void decode_out(final NdrBuffer buf) throws NdrException {
            buf.dec_ndr_short(); /* max transmit frag size */
            buf.dec_ndr_short(); /* max receive frag size */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

            if (buf.dec_ndr_long() != 0x00000010) { /* Little-endian / ASCII / IEEE */
                throw new NdrException("Data representation not supported");
            }
            length = buf.dec_ndr_short();
            if (buf.dec_ndr_short() != 0) {
                throw new NdrException("DCERPC authentication not supported");
            }
            call_id = buf.dec_ndr_long();
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

        /**
         * Verify that decode invokes NdrBuffer.dec_ndr_short.
         */
        @Test
        void decodeWithSpiedBufferCallsDecMethod() throws NdrException {
            NdrShort ns = new NdrShort(0); // value will be overwritten
            // Pre-populate buffer with the encoding of a short value
            NdrBuffer prepare = new NdrBuffer(new byte[10], 0);
            prepare.enc_ndr_short(0x34); // Encode value 0x34
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            buf.enc_ndr_long(0x00000010); // data representation
            buf.enc_ndr_short(20); // length
            buf.enc_ndr_short(0); // auth length
            buf.enc_ndr_long(0); // call_id
    
            // Response body
            buf.enc_ndr_long(4); // alloc_hint
            buf.enc_ndr_short(0); // context_id
            buf.enc_ndr_short(0); // cancel_count
            buf.enc_ndr_small(0xAB); // test data for decode_out
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/ndr/NdrShort.java

            this.value = value & 0xFF;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_short(this.value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
            this.value = src.dec_ndr_short();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/ndr/NdrShort.java

            this.value = value & 0xFF;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_short(value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
            value = src.dec_ndr_short();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

            byte[] wideBytes = new byte[byteCount];
            buf.readOctetArray(wideBytes, 0, byteCount);
    
            // Skip null terminator
            buf.dec_ndr_short();
    
            // Skip padding
            int padding = (4 - ((byteCount + 2) % 4)) % 4;
            for (int i = 0; i < padding; i++) {
                buf.dec_ndr_small();
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top