- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 491 for Offset (0.03 sec)
-
src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java
return; } int offset = 0; while (offset < outputBuffer.length) { // Parse FILE_NOTIFY_INFORMATION structure int nextEntryOffset = SMBUtil.readInt4(outputBuffer, offset); int action = SMBUtil.readInt4(outputBuffer, offset + 4); int fileNameLength = SMBUtil.readInt4(outputBuffer, offset + 8); // Extract filename
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset"); } @Test void testEncodeWithOffset() { // Test encoding with a destination offset byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 }; ByteEncodable encodable = new ByteEncodable(data, 0, 3); byte[] dest = new byte[5]; // {0,0,0,0,0}
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
* * ``` * 0..63 : Length of the UTF-16 sequence that this range maps to. The offset is b2b3. * 64..79 : Offset by a fixed negative offset. The bottom 4 bits of b1 are the top 4 bits of the offset. * 80..95 : Offset by a fixed positive offset. The bottom 4 bits of b1 are the top 4 bits of the offset. * 119 : Ignored. * 120 : Valid. * 121 : Disallowed * 122 : Mapped inline to the sequence: [b2].
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 9K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/SMBUtilTest.java
assertEquals(0xFFFF, SMBUtil.readInt2(buffer, 14)); // Test different offsets for (int offset = 0; offset <= 8; offset++) { SMBUtil.writeInt4(0x12345678, buffer, offset); assertEquals(0x12345678, SMBUtil.readInt4(buffer, offset)); } } @Test void testNegativeValueHandling() { byte[] buffer = new byte[8];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
assertEquals(12, bytesWritten); assertEquals(1, SMBUtil.readInt2(buffer, offset)); assertEquals(6, SMBUtil.readInt2(buffer, offset + 2)); assertEquals(PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512, SMBUtil.readInt2(buffer, offset + 4)); assertArrayEquals(salt, Arrays.copyOfRange(buffer, offset + 6, offset + 12)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 34K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
} @Test @DisplayName("Test decode with offset") void testDecodeWithOffset() throws SMBProtocolDecodingException { // Prepare buffer with offset long expectedValue = 0xAAAABBBBCCCCDDDDL; byte[] buffer = new byte[20]; int offset = 7; SMBUtil.writeInt8(expectedValue, buffer, offset); // Decode from offset
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type2Message.java
int offset = 0; if (domainLength > 0) { writeUShort(targetInfo, offset, 2); offset += 2; writeUShort(targetInfo, offset, domainLength); offset += 2; System.arraycopy(domain, 0, targetInfo, offset, domainLength); offset += domainLength; } if (serverLength > 0) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
byte[] buffer = new byte[100]; int offset = 10; // When int bytesWritten = request.writeBytesWireFormat(buffer, offset); // Then assertEquals(4, bytesWritten, "Should write 4 bytes"); // Check that structure size (4) is written as 2-byte little-endian assertEquals(4, buffer[offset] | (buffer[offset + 1] << 8), "Structure size should be 4");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
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/test/java/jcifs/util/transport/ResponseTest.java
int offset = 0; int size = 3; // Simulate successful verification when(mockResponse.verifySignature(buffer, offset, size)).thenReturn(true); assertTrue(mockResponse.verifySignature(buffer, offset, size)); // Simulate failed verification when(mockResponse.verifySignature(buffer, offset, size)).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0)