- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 517 for offsets (0.05 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
// Test reading data from different buffer offsets byte[] testData = "Test data with offset".getBytes(); byte[] buffer = new byte[200]; int offset = 50; System.arraycopy(testData, 0, buffer, offset, testData.length); int result = response.readDataWireFormat(buffer, offset, testData.length); assertEquals(testData.length, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K 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) -
cmd/copy-part-range.go
} } // Parses x-amz-copy-source-range for CopyObjectPart API. Its behavior // is different from regular HTTP range header. It only supports the // form `bytes=first-last` where first and last are zero-based byte // offsets. See // http://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadUploadPartCopy.html // for full details. This function treats an empty rangeString as // referring to the whole resource.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jun 18 03:27:04 UTC 2021 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java
} } @BeforeEach void setUp() { smbComNtTransaction = new ConcreteSmbComNtTransaction(); } @Test void testConstructor() { // Test if the offsets are initialized correctly by the constructor. assertEquals(69, smbComNtTransaction.primarySetupOffset, "primarySetupOffset should be initialized to 69");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
assertEquals(descrBytes[i], dst[offset + i]); } offset += descrBytes.length; // 3. Level (2 bytes) assertEquals(0x0001, SMBUtil.readInt2(dst, offset)); offset += 2; // 4. MaxDataCount (2 bytes) int maxDataCount = SMBUtil.readInt2(dst, offset); assertTrue(maxDataCount > 0); offset += 2; // Verify total bytes written
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K 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/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/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/internal/smb1/com/SmbComRenameTest.java
assertEquals((byte) 0x04, dst[0]); // First buffer format byte } /** * Test writeBytesWireFormat with different buffer offsets */ @Test @DisplayName("Test writeBytesWireFormat with different buffer offsets") public void testWriteBytesWireFormatWithOffset() { // Given String oldFileName = "old.txt"; String newFileName = "new.txt";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
cmd/bitrot.go
if left < shardSize { shardSize = left } read, err := io.CopyBuffer(h, io.LimitReader(r, shardSize), *bufp) if err != nil { // Read's failed for object with right size, at different offsets. return errFileCorrupt } left -= read if !bytes.Equal(h.Sum(nil), hashBuf[:n]) { return errFileCorrupt } } return nil }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Feb 26 19:26:13 UTC 2025 - 7.7K bytes - Viewed (0)