Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NdrShort (0.04 sec)

  1. src/main/java/jcifs/dcerpc/ndr/NdrShort.java

    /**
     * NDR representation of a short integer (2-byte signed integer).
     */
    public class NdrShort extends NdrObject {
    
        /**
         * The short integer value.
         */
        public int value;
    
        /**
         * Constructs an NdrShort with the specified value.
         *
         * @param value the short integer value
         */
        public NdrShort(final int value) {
            this.value = value & 0xFF;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/ndr/NdrShort.java

    /**
     * NDR representation of a short integer (2-byte signed integer).
     */
    public class NdrShort extends NdrObject {
    
        /**
         * The short integer value.
         */
        public int value;
    
        /**
         * Constructs an NdrShort with the specified value.
         *
         * @param value the short integer value
         */
        public NdrShort(final int value) {
            this.value = value & 0xFF;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                // Given/When: Creating NdrShort with zero
                NdrShort ndrShort = new NdrShort(0);
    
                // Then: Value should be zero
                assertEquals(0, ndrShort.value);
            }
    
            @Test
            @DisplayName("Should handle maximum byte value correctly")
            void testConstructorMaxByte() {
                // Given/When: Creating NdrShort with max byte value
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

        /**
         * Validate that the constructor masks the supplied value to its
         * lowest 8 bits (NdrShort incorrectly masks to 8 bits even though it's a short).
         */
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 255, -1, 256, 65535 })
        void constructorMasksValue(int input) {
            NdrShort ns = new NdrShort(input);
            // NdrShort masks to 0xFF (8 bits) in its constructor
            int expected = input & 0xFF;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top