Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for nameBytes (0.03 sec)

  1. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, nameOffsetOffset);
    
            System.arraycopy(nameBytes, 0, dst, dstIndex, nameBytes.length);
            if (nameBytes.length == 0) {
                // buffer must contain at least one byte
                dstIndex++;
            } else {
                dstIndex += nameBytes.length;
            }
    
            dstIndex += pad8(dstIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            String nameWithSpaces = "COMPUTER";
            byte[] nameBytes = new byte[16];
            System.arraycopy(nameWithSpaces.getBytes("US-ASCII"), 0, nameBytes, 0, nameWithSpaces.length());
            // Fill rest with spaces (0x20)
            for (int i = nameWithSpaces.length(); i < 15; i++) {
                nameBytes[i] = 0x20;
            }
            nameBytes[15] = 0x00; // Last byte for hex code position
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                // Simulate the pattern from Smb2CreateResponse
                byte[] nameBytes = "SMB2_CREATE_CONTEXT".getBytes(StandardCharsets.UTF_8);
                byte[] dataBuffer = new byte[1024];
                Arrays.fill(dataBuffer, (byte) 0xAB);
    
                TestCreateContextResponse contextResponse = new TestCreateContextResponse(nameBytes);
    
                // Simulate decode call
                int dataOffset = 100;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            assertEquals(52, SMBUtil.readInt4(buffer, 12)); // DataLength
    
            // Verify context name
            byte[] nameBytes = new byte[4];
            System.arraycopy(buffer, 16, nameBytes, 0, 4);
            assertEquals("DLse", new String(nameBytes));
    
            // Verify lease key (first 16 bytes of data)
            byte[] leaseKeyBytes = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            // Verify name length field at offset 46 (after 44 bytes of fixed fields + 2 for name offset)
            byte[] nameBytes = longPath.getBytes(StandardCharsets.UTF_16LE);
            int nameLenInBuffer = (buffer[46] & 0xFF) | ((buffer[47] & 0xFF) << 8);
            assertEquals(nameBytes.length, nameLenInBuffer);
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat returns 0")
        void testReadBytesWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            byte[] fileNameBytes2 = fileName2.getBytes("UTF-16LE");
            byte[] fileNameBytes3 = fileName3.getBytes("UTF-16LE");
    
            // First entry size: 4 (nextOffset) + 4 (action) + 4 (nameLength) + nameBytes
            int entry1Size = 12 + fileNameBytes1.length;
            int entry1AlignedSize = ((entry1Size + 3) / 4) * 4; // Align to 4 bytes
    
            int entry2Size = 12 + fileNameBytes2.length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
Back to top