- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 559 for offsetY (0.12 seconds)
-
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)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.9K bytes - Click Count (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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 22K bytes - Click Count (0) -
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
buffer[offset] = 0x01; // revision buffer[offset + 1] = 0x00; // padding SMBUtil.writeInt2(0x8004, buffer, offset + 2); // type SMBUtil.writeInt4(0, buffer, offset + 4); // owner offset SMBUtil.writeInt4(0, buffer, offset + 8); // group offset SMBUtil.writeInt4(0, buffer, offset + 12); // SACL offset SMBUtil.writeInt4(20, buffer, offset + 16); // DACL offset
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
cmd/httprange.go
// Case 2: bytes=1-10 (absolute start and end offsets) -> RangeSpec{false, 1, 10} // Case 3: bytes=10- (absolute start offset with end offset unspecified) -> RangeSpec{false, 10, -1} // Case 4: bytes=-30 (suffix length specification) -> RangeSpec{true, -30, -1} type HTTPRangeSpec struct { // Does the range spec refer to a suffix of the object? IsSuffixLength bool // Start and end offset specified in range spec Start, End int64 }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
@DisplayName("Should decode at various offsets") @ValueSource(ints = { 0, 10, 50, 100, 200 }) void testDecodeAtVariousOffsets(int offset) throws SMBProtocolDecodingException { byte[] buffer = new byte[512]; byte[] responseData = createValidCopyChunkResponse(7, 8192, 57344); System.arraycopy(responseData, 0, buffer, offset, responseData.length);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.8K bytes - Click Count (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];
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.1K bytes - Click Count (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.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Nov 14 19:09:46 GMT 2025 - 36.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
/** * Test integer overflow protection in security buffer offset calculation. */ @Test public void testSecurityBufferIntegerOverflow() { byte[] buffer = createBasicNegotiateResponseBuffer(); // Set security buffer offset close to Integer.MAX_VALUE to test overflow protection SMBUtil.writeInt2(32767, buffer, 56); // Large offset (will be added to header start)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
void testReadSetupWireFormatVariousParams() { // Test with different buffer sizes and offsets int[][] testCases = { { 0, 50 }, // No offset, 50 bytes { 10, 90 }, // 10 byte offset, 90 bytes { 50, 50 }, // 50 byte offset, 50 bytes { 0, 0 }, // Empty buffer { 100, 100 } // Large values };
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0)