- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 541 for offset (0.03 sec)
-
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
@DisplayName("writeAndXWireFormat without andx writes 0xFF and sentinel offset") void testWriteAndXWireFormatWithoutAndx() { DummyAndXBlock block = new DummyAndXBlock(); byte[] buf = new byte[128]; int n = block.writeAndXWireFormat(buf, 0); assertTrue(n > 0); // Common AndX header: command at +1, reserved at +2, offset at +3/+4Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java
public int encode(byte[] buffer, int offset) { int start = offset; // Write context header SMBUtil.writeInt4(0, buffer, offset); // Next (offset to next context, 0 for last) offset += 4; SMBUtil.writeInt2(16, buffer, offset); // NameOffset (from start of context) offset += 2; SMBUtil.writeInt2(4, buffer, offset); // NameLength offset += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java
assertEquals(expected[i], dst[offset + i], () -> "byte index " + idx); } // The region before offset and after the payload must remain untouched. for (int i = 0; i < offset; i++) { final int idx = i; assertEquals(0, dst[i], () -> "pre-offset byte " + idx + " modified"); } for (int i = offset + 8; i < dst.length; i++) { final int idx = i;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K 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) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
@DisplayName("Test decode with buffer offset") void testDecodeWithBufferOffset() throws SMBProtocolDecodingException { String fileName = "offset_test.txt"; int action = FileNotifyInformation.FILE_ACTION_MODIFIED; int offset = 50; byte[] smallBuffer = createValidNotificationBuffer(fileName, action); byte[] buffer = new byte[smallBuffer.length + offset + 50];Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java
@Test @DisplayName("Test decode with buffer offset") void testDecodeWithBufferOffset() throws SMBProtocolDecodingException { // Prepare test data with offset byte[] buffer = new byte[20]; // Extra space to test offset int bufferIndex = 7; // Start at offset 7 long expectedIndexNumber = 0xFEDCBA9876543210L; // Encode test data at offsetRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/cmd/asm/internal/arch/arm64.go
} // ARM64RegisterListOffset generates offset encoding according to AArch64 specification. func ARM64RegisterListOffset(firstReg, regCnt int, arrangement int64) (int64, error) { offset := int64(firstReg) switch regCnt { case 1: offset |= 0x7 << 12 case 2: offset |= 0xa << 12 case 3: offset |= 0x6 << 12 case 4: offset |= 0x2 << 12 default:
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 14 15:13:11 UTC 2025 - 10.3K bytes - Viewed (0) -
src/archive/tar/common.go
// // var spd sparseDatas = []sparseEntry{ // {Offset: 2, Length: 5}, // Data fragment for 2..6 // {Offset: 18, Length: 3}, // Data fragment for 18..20 // } // var sph sparseHoles = []sparseEntry{ // {Offset: 0, Length: 2}, // Hole fragment for 0..1 // {Offset: 7, Length: 11}, // Hole fragment for 7..17 // {Offset: 21, Length: 4}, // Hole fragment for 21..24 // } //Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 13 21:03:27 UTC 2024 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
}); } @Test @DisplayName("Should write consistent structure at different offsets") void testWriteBytesAtDifferentOffsets() throws Exception { // Test at different offsets int[] offsets = { 0, 10, 50, 100, 200 }; for (int offset : offsets) { // Given byte[] buffer = new byte[1024];Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
guava/src/com/google/common/hash/Murmur3_32HashFunction.java
} h1 ^= mixK1(k1); return fmix(h1, len); } private static int getIntLittleEndian(byte[] input, int offset) { return Ints.fromBytes(input[offset + 3], input[offset + 2], input[offset + 1], input[offset]); } private static int mixK1(int k1) { k1 *= C1; k1 = Integer.rotateLeft(k1, 15); k1 *= C2; return k1; }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 11.8K bytes - Viewed (0)