- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 486 for _offsets (0.04 sec)
-
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/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/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/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/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/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) -
doc/asm.html
Adding an offset to the name refers to that offset from the symbol's address, so <code>foo+4(SB)</code> is four bytes past the start of <code>foo</code>. </p> <p> The <code>FP</code> pseudo-register is a virtual frame pointer used to refer to function arguments. The compilers maintain a virtual frame pointer and refer to the arguments on the stack as offsets from that pseudo-register.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Nov 28 19:15:27 UTC 2023 - 36.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
int offset = 64; // Start at offset to test proper indexing int written = request.writeBytesWireFormat(buffer, offset); // Verify bytes written assertEquals(24, written); // Verify structure size (should be 24) assertEquals(24, SMBUtil.readInt2(buffer, offset)); // Verify Reserved1 (2 bytes at offset+2, should be 0)
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/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
@DisplayName("Should handle buffer with offset correctly") void testReadWithBufferOffset() throws Exception { int offset = 10; byte[] buffer = new byte[64]; byte[] fileId = createTestData(16); byte oplockLevel = 0x02; // Fill some random data before offset Arrays.fill(buffer, 0, offset, (byte) 0xAB);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
assertEquals(ttl, ref.getTtl()); } } // Buffer Offset Tests @Test public void testDecodeFromNonZeroIndex() { int offset = 100; ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN); bb.position(offset); bb.putShort((short) 1); bb.putShort((short) 24); bb.putShort((short) 1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 22K bytes - Viewed (0)