Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for dec_ndr_small (0.44 sec)

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

        void decode_header(final NdrBuffer buf) throws NdrException {
            /* RPC major / minor version */
            if (buf.dec_ndr_small() != 5 || buf.dec_ndr_small() != 0) {
                throw new NdrException("DCERPC version not supported");
            }
            this.ptype = buf.dec_ndr_small();
            this.flags = buf.dec_ndr_small();
            if (buf.dec_ndr_long() != 0x00000010) { /* Little-endian / ASCII / IEEE */
    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/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            buf.setIndex(0);
    
            // Verify header was written correctly
            assertEquals(5, buf.dec_ndr_small()); // RPC version
            assertEquals(0, buf.dec_ndr_small()); // minor version
            assertEquals(0, buf.dec_ndr_small()); // ptype
            assertEquals(0x05, buf.dec_ndr_small()); // flags
            assertEquals(0x00000010, buf.dec_ndr_long()); // data representation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java

            // Verify that enc_ndr_small was called with the correct value
            verify(mockNdrBuffer, times(1)).enc_ndr_small(100);
            verifyNoMoreInteractions(mockNdrBuffer);
        }
    
        @Test
        void testDecode() throws NdrException {
            // Define the value that dec_ndr_small should return
            int decodedValue = 200;
            when(mockNdrBuffer.dec_ndr_small()).thenReturn(decodedValue);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

        void decode_header(final NdrBuffer buf) throws NdrException {
            /* RPC major / minor version */
            if (buf.dec_ndr_small() != 5 || buf.dec_ndr_small() != 0) {
                throw new NdrException("DCERPC version not supported");
            }
            ptype = buf.dec_ndr_small();
            flags = buf.dec_ndr_small();
            if (buf.dec_ndr_long() != 0x00000010) { /* Little-endian / ASCII / IEEE */
    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/main/java/jcifs/dcerpc/ndr/NdrSmall.java

            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();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/DcerpcBind.java

            buf.enc_ndr_short(this.max_recv);
            buf.enc_ndr_long(0); /* assoc. group */
            buf.enc_ndr_small(1); /* num context items */
            buf.enc_ndr_small(0); /* reserved */
            buf.enc_ndr_short(0); /* reserved2 */
            buf.enc_ndr_short(0); /* context id */
            buf.enc_ndr_small(1); /* number of items */
            buf.enc_ndr_small(0); /* reserved */
            this.binding.getUuid().encode(buf);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcBind.java

            buf.enc_ndr_short(max_recv);
            buf.enc_ndr_long(0); /* assoc. group */
            buf.enc_ndr_small(1); /* num context items */
            buf.enc_ndr_small(0); /* reserved */
            buf.enc_ndr_short(0); /* reserved2 */
            buf.enc_ndr_short(0); /* context id */
            buf.enc_ndr_small(1); /* number of items */
            buf.enc_ndr_small(0); /* reserved */
            binding.uuid.encode(buf);
            buf.enc_ndr_short(binding.major);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/ndr/NdrSmall.java

            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();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

            // 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();
            }
    
            return new String(wideBytes, StandardCharsets.UTF_16LE);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java

                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
                for (int i = 0; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            }
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top