Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for decode_header (0.28 sec)

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

                buf.enc_ndr_long(this.alloc_hint);
            }
    
            buf.setIndex(start);
            encode_header(buf);
            buf.setIndex(start + this.length);
        }
    
        @Override
        public void decode(final NdrBuffer buf) throws NdrException {
            decode_header(buf);
    
            if (this.ptype != 12 && this.ptype != 2 && this.ptype != 3 && this.ptype != 13) {
    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/smb1/dcerpc/DcerpcMessage.java

                buf.enc_ndr_long(alloc_hint);
            }
    
            buf.setIndex(start);
            encode_header(buf);
            buf.setIndex(start + length);
        }
    
        @Override
        public void decode(final NdrBuffer buf) throws NdrException {
            decode_header(buf);
    
            if (ptype != 12 && ptype != 2 && ptype != 3 && ptype != 13) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            buf.setIndex(0);
            m.decode_header(buf);
            assertEquals(0, m.ptype);
        }
    
        @Test
        void testDecodeHeaderInvalidVersion() {
            NdrBuffer buf = new NdrBuffer(new byte[10], 0);
            buf.enc_ndr_small(4); // bad major
            buf.enc_ndr_small(0);
            TestMessage msg = new TestMessage();
            assertThrows(NdrException.class, () -> msg.decode_header(buf));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top