Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for negativeLength (0.29 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

                long negativeLength = -100L;
                int negativeFlags = -1;
    
                lock = new Smb2Lock(negativeOffset, negativeLength, negativeFlags);
                lock.encode(buffer, 0);
    
                // Negative values should be encoded as unsigned
                assertEquals(negativeOffset, SMBUtil.readInt8(buffer, 0));
                assertEquals(negativeLength, SMBUtil.readInt8(buffer, 8));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            void testEncodeNegativeValues() {
                // Given
                long negativeOffset = -1L;
                int negativeLength = -1;
                SrvCopychunk chunk = new SrvCopychunk(negativeOffset, negativeOffset, negativeLength);
    
                // When
                int bytesWritten = chunk.encode(buffer, startIndex);
    
                // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.4K bytes
    - Click Count (0)
Back to Top