- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 83 for copied (1.31 sec)
-
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
assertTrue(result > 0); // Verify header for (int i = 0; i < 8; i++) { assertEquals((byte) 0xFF, testBuffer[i]); } // Verify name was copied byte[] nameCheck = new byte[testName.length]; System.arraycopy(testBuffer, 8, nameCheck, 0, testName.length); assertArrayEquals(testName, nameCheck); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
int dataOffsetValue = SMBUtil.readInt2(buffer, headerStart + 2); assertEquals(headerStart - 0 + 48, dataOffsetValue); // Assuming getHeaderStart() returns 0 // Verify data is copied assertArrayEquals(data, Arrays.copyOfRange(buffer, headerStart + 48, headerStart + 48 + data.length)); // Verify total bytes written assertEquals(48 + data.length, bytesWritten);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
} i = i == 1 ? 0 : 1; off += read; } if (log.isDebugEnabled()) { log.debug(String.format("Copied a total of %d bytes", off)); } if (dh.isSMB2()) { final Smb2SetInfoRequest req = new Smb2SetInfoRequest(dh.getConfig(), dfd.getFileId());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
assertEquals(0, SMBUtil.readInt2(buffer, offset + 2)); // Verify Reserved2 (4 bytes at offset+4, should be 0) assertEquals(0, SMBUtil.readInt4(buffer, offset + 4)); // Verify file ID is copied correctly (16 bytes starting at offset+8) byte[] copiedFileId = new byte[16]; System.arraycopy(buffer, offset + 8, copiedFileId, 0, 16); assertArrayEquals(testFileId, copiedFileId); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
assertEquals(5, d.getBufferDataStart(), "bufDataStart inferred from totalParameterCount"); } /** * Exercise readBytesWireFormat where both parameter and data are * copied in a single call. */ @Test public void readBytesWireFormat_succeedsWithSingleRead() { DummyResponse d = new DummyResponse(); // Allocate a transaction buffer large enough for the copy
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
assertEquals(1, testResponse.getDecodeCallCount()); assertNotNull(testResponse.getData()); assertEquals(length, testResponse.getData().length); // Verify data was copied correctly for (int i = 0; i < length; i++) { assertEquals(testBuffer[10 + i], testResponse.getData()[i]); } } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
assertEquals(0, SMBUtil.readInt2(buffer, offset + 2)); // Verify Reserved (4 bytes at offset+4, should be 0) assertEquals(0, SMBUtil.readInt4(buffer, offset + 4)); // Verify file ID is copied correctly (16 bytes starting at offset+8) byte[] copiedFileId = new byte[16]; System.arraycopy(buffer, offset + 8, copiedFileId, 0, 16); assertArrayEquals(testFileId, copiedFileId); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
// When int bytesWritten = copy.encode(buffer, startIndex); // Then assertEquals(HEADER_SIZE, bytesWritten); // Verify source key is copied correctly for (int i = 0; i < SOURCE_KEY_SIZE; i++) { assertEquals(sourceKey[i], buffer[startIndex + i], "Source key byte at position " + i + " doesn't match"); } }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
@Test @DisplayName("Should handle partial copy operations") void testPartialCopyOperation() throws SMBProtocolDecodingException { // Simulate partial copy where not all requested bytes were copied byte[] buffer = createValidCopyChunkResponse(3, // Only 3 chunks written (maybe less than requested) 65536, // 64KB per chunk 196608 // 192KB total (3 * 64KB) );Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0) -
LICENSE
granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Jan 11 04:26:17 UTC 2021 - 11.1K bytes - Viewed (0)