- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 490 for offsetY (0.03 sec)
-
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
int bytesWritten = packet.writeTrailerWireFormat(dst, offset); assertTrue(bytesWritten > 0); // Check that bytes before offset are unchanged for (int i = 0; i < offset; i++) { assertEquals((byte) 0xFF, dst[i]); } // Check that bytes after offset are written assertNotEquals((byte) 0xFF, dst[offset]); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java
*/ public LockingAndXRange(final boolean largeFile) { this.largeFile = largeFile; } /** * Returns the process ID associated with this lock range. * * @return the process ID */ public int getPid() { return this.pid; } /** * Returns the starting byte offset of the lock range. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
buffer.putShort((short) 0x8004); // Control flags (SE_DACL_PRESENT | SE_SELF_RELATIVE) buffer.putInt(20); // Owner offset buffer.putInt(40); // Group offset buffer.putInt(0); // SACL offset (null) buffer.putInt(60); // DACL offset // Owner SID at offset 20 buffer.position(20); buffer.put((byte) 0x01); // Revision buffer.put((byte) 0x01); // SubAuthorityCount
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
@DisplayName("Should handle various buffer offsets") void testVariousBufferOffsets(int offset) { byte[] largeBuffer = new byte[512]; int result = testRequest.encode(largeBuffer, offset); assertTrue(result > 0); // Verify header at correct offset for (int i = offset; i < offset + 8; i++) { assertEquals((byte) 0xFF, largeBuffer[i]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java
// No group (offset 0) for (int i = 8; i < 12; i++) securityDescriptorBytes[i] = 0; // No SACL (offset 0) for (int i = 12; i < 16; i++) securityDescriptorBytes[i] = 0; // DACL at offset 20 securityDescriptorBytes[16] = 20; securityDescriptorBytes[17] = 0; securityDescriptorBytes[18] = 0; securityDescriptorBytes[19] = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java
byte[] dst = new byte[100]; int bytesWritten = notifyChange.writeSetupWireFormat(dst, 10); // Verify structure: // Offset 0-3: Completion Filter (4 bytes) // Offset 4-5: FID (2 bytes) // Offset 6: Watch Tree (1 byte) // Offset 7: Reserved (1 byte) assertEquals(8, bytesWritten); // Check completion filter
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
byte[] buffer = new byte[256]; int offset = 10; // When int bytesWritten = request.writeBytesWireFormat(buffer, offset); // Then assertEquals(4, bytesWritten); // Verify structure size (4) is written at offset assertEquals(4, SMBUtil.readInt2(buffer, offset)); // Verify reserved field (0) is written at offset + 2
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
assertEquals(0, result); } @Test @DisplayName("Test boundary conditions for buffer offsets") void testBoundaryConditions() { byte[] smallBuffer = new byte[10]; // Test with maximum offset int result = response.writeSetupWireFormat(smallBuffer, Integer.MAX_VALUE); assertEquals(0, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
} @ParameterizedTest @DisplayName("Should handle various offsets") @ValueSource(longs = { 0L, 1L, 512L, 1024L, 4096L, 1048576L, Long.MAX_VALUE }) void testVariousOffsets(long offset) { assertDoesNotThrow(() -> request.setOffset(offset)); } } @Nested @DisplayName("Size Calculation Tests") class SizeCalculationTests {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
@DisplayName("Should read response at various buffer offsets") @ValueSource(ints = { 0, 10, 100, 500 }) void testReadAtDifferentOffsets(int offset) throws SMBProtocolDecodingException { byte[] buffer = new byte[1024]; byte[] responseData = createValidWriteResponse(2048, 1024); System.arraycopy(responseData, 0, buffer, offset, responseData.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0)