- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 83 for Offset (0.04 sec)
-
cmd/erasure-decode_test.go
} // To generate random offset/length. r := rand.New(rand.NewSource(UTCNow().UnixNano())) buf := &bytes.Buffer{} // Verify erasure.Decode() for random offsets and lengths. for range iterations { offset := r.Int63n(length) readLen := r.Int63n(length - offset) expected := data[offset : offset+readLen] // Get the checksums of the current part.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 21K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/CompressionService.java
* * @param data the data buffer * @param offset the offset in the buffer * @param length the length of data to compress * @param algorithm the compression algorithm to use * @return the compressed data * @throws CIFSException if compression fails */ byte[] compress(byte[] data, int offset, int length, int algorithm) throws CIFSException;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
this.readLength = readLength; } /** * Sets the file offset from which to start reading * * @param offset * the offset to set */ public void setOffset(final long offset) { this.offset = offset; } /** * Sets the minimum number of bytes that must be read for the operation to succeed *Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
cmd/erasure-encode_test.go
{dataBlocks: 4, onDisks: 8, offDisks: 2, blocksize: int64(blockSizeV2), data: oneMiByte, offset: 2, algorithm: DefaultBitrotAlgorithm, shouldFail: false, shouldFailQuorum: false}, // 2Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 11.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
assertArrayEquals(testKey.getKey(), encodedKey); // Verify lease state at offset 40 (24 + 16 for key) assertEquals(testState, SMBUtil.readInt4(buffer, 40)); // Verify lease flags at offset 44 (40 + 4 for state) assertEquals(0, SMBUtil.readInt4(buffer, 44)); // Verify lease duration at offset 48 (44 + 4 for flags) - should be 0 (reserved) assertEquals(0, SMBUtil.readInt8(buffer, 48));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
} @Override public byte[] compress(byte[] data, int offset, int length, int algorithm) throws CIFSException { if (data == null) { throw new CIFSException("Data cannot be null"); } if (offset < 0 || length < 0 || offset + length > data.length) { throw new CIFSException("Invalid offset or length"); } if (!isAlgorithmSupported(algorithm)) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java
SMBUtil.writeInt4(0, buffer, offset + 4); // sin6_flowinfo System.arraycopy(address.getAddress(), 0, buffer, offset + 8, 16); // sin6_addr SMBUtil.writeInt4(0, buffer, offset + 24); // sin6_scope_id } else { // IPv4 sockaddr_in structure (Windows AF_INET = 2) SMBUtil.writeInt2(2, buffer, offset); // sa_family: AF_INET
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
} @Test @DisplayName("Should handle output buffer with offset") void testReadBytesWireFormatWithOutputOffset() throws Exception { // Given int offset = 100; byte[] largeOutputBuffer = new byte[1024]; Smb2ReadResponse offsetResponse = new Smb2ReadResponse(mockConfig, largeOutputBuffer, offset); byte[] buffer = new byte[256]; int bodyStart = 0;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
} } /** * Validate offset and length for file operations * * @param offset file offset * @param length operation length * @param fileSize total file size * @throws SmbException if parameters are invalid */ public void validateFileOperation(long offset, long length, long fileSize) throws SmbException {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0)