Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for encodeZeroLengthDoesNotModifyDestination (0.17 seconds)

  1. src/test/java/jcifs/EncodableTest.java

                assertEquals((byte) 0x55, dst[i], "Unexpected change after copy region at " + i);
            }
        }
    
        @Test
        @DisplayName("encode() with zero length does not modify destination")
        void encodeZeroLengthDoesNotModifyDestination() {
            byte[] src = makeSeq(10);
            Encodable enc = new ByteEncodable(src, 5, 0); // zero length
            byte[] dst = new byte[8];
            Arrays.fill(dst, (byte) 0x7A);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.6K bytes
    - Click Count (0)
Back to Top