Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,191 for differ (0.05 sec)

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

                byte[] buffer = new byte[512];
    
                int bytesWritten = req.writeBytesWireFormat(buffer, 0);
    
                assertEquals(48, SMBUtil.readInt2(buffer, 0)); // Structure size
                assertEquals(3, SMBUtil.readInt2(buffer, 2)); // Lock count
                assertArrayEquals(testFileId, Arrays.copyOfRange(buffer, 8, 24));
    
                // Each lock is 24 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertEquals(1024L, SMBUtil.readInt8(buffer, headerStart + 8)); // Offset
                assertArrayEquals(testFileId, Arrays.copyOfRange(buffer, headerStart + 16, headerStart + 32)); // File ID
                assertEquals(0, SMBUtil.readInt4(buffer, headerStart + 32)); // Channel
                assertEquals(500, SMBUtil.readInt4(buffer, headerStart + 36)); // Remaining bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            buffer[bufferIndex++] = (byte) 0x00;
            buffer[bufferIndex++] = (byte) 0x40;
            buffer[bufferIndex++] = 0;
            buffer[bufferIndex++] = 0;
            // maxRawSize
            buffer[bufferIndex++] = (byte) 0x00;
            buffer[bufferIndex++] = (byte) 0x10;
            buffer[bufferIndex++] = 0;
            buffer[bufferIndex++] = 0;
            // sessionKey
            buffer[bufferIndex++] = 1;
            buffer[bufferIndex++] = 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            // Test reading parameters from a properly formatted buffer
            byte[] buffer = new byte[20];
    
            // Set up the buffer with test data
            // sid (2 bytes)
            buffer[0] = 0x01;
            buffer[1] = 0x00;
            // numEntries (2 bytes)
            buffer[2] = 0x05;
            buffer[3] = 0x00;
            // isEndOfSearch (2 bytes, bit 0 of first byte)
            buffer[4] = 0x01; // end of search = true
            buffer[5] = 0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            byte[] buffer = new byte[8];
    
            // Path consumed (2 bytes)
            SMBUtil.writeInt2(0, buffer, 0);
    
            // Number of referrals (2 bytes) - 0
            SMBUtil.writeInt2(0, buffer, 2);
    
            // Flags (2 bytes)
            SMBUtil.writeInt2(0, buffer, 4);
    
            // Padding (2 bytes)
            buffer[6] = 0;
            buffer[7] = 0;
    
            return buffer;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                byte[] buffer = new byte[64];
                SMBUtil.writeInt2(17, buffer, 0);
                SMBUtil.writeInt2(0, buffer, 2);
                SMBUtil.writeInt4(count, buffer, 4);
                SMBUtil.writeInt4(remaining, buffer, 8);
                SMBUtil.writeInt4(0, buffer, 12);
                SMBUtil.writeInt4(0, buffer, 16);
                return buffer;
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            buffer[5] = 0x00;
            buffer[6] = 0x00;
            buffer[7] = 0x00;
            buffer[8] = 0x00;
    
            // Flags
            buffer[9] = 0x00;
    
            // Flags2 (2 bytes)
            buffer[10] = 0x00;
            buffer[11] = 0x00;
    
            // Process ID High (2 bytes)
            buffer[12] = 0x00;
            buffer[13] = 0x00;
    
            // Signature (8 bytes)
            for (int i = 14; i < 22; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java

        /**
         * Creates a security descriptor by decoding from a byte buffer.
         *
         * @param buffer the byte buffer containing the security descriptor data
         * @param bufferIndex the starting offset in the buffer
         * @param len the length of data to decode
         * @throws IOException if an I/O error occurs during decoding
         */
        public SecurityDescriptor(final byte[] buffer, final int bufferIndex, final int len) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            offset += 8;
            SMBUtil.writeInt4(expectedNumberOfLinks, buffer, offset);
            offset += 4;
            buffer[offset++] = (byte) (expectedDeletePending ? 1 : 0);
            buffer[offset++] = (byte) (expectedDirectory ? 1 : 0);
    
            // Decode and verify
            fileStandardInfo.decode(buffer, 0, buffer.length);
            assertEquals(expectedEndOfFile, fileStandardInfo.getSize());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

            // The validation in getBuffer() ensures size is within bounds (0 < size <= 1MB)
            assertTrue(buffer.length > 0, "Buffer size should be positive");
            assertTrue(buffer.length <= 0x100000, "Buffer size should not exceed 1MB");
        }
    
        /**
         * Test that releaseBuffer validates buffer before accepting it.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top