- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for nameBytes (0.12 sec)
-
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
// filename bytes, then null terminator byte[] nameBytes = name.getBytes(); for (int i = 0; i < nameBytes.length; i++) { assertEquals(nameBytes[i], dst[12 + i], "Filename byte mismatch at index " + i); } assertEquals((byte) 0x00, dst[12 + nameBytes.length], "Filename must be null-terminated"); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
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) -
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) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (0) -
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) -
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)