- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 192 for length (0.04 sec)
-
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
final byte[] output = new byte[cipher.getOutputSize(input.length)]; int len = cipher.processBytes(input, 0, input.length, output, 0); len += cipher.doFinal(output, len); plaintext = new byte[ciphertext.length]; System.arraycopy(output, 0, plaintext, 0, ciphertext.length); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
cmd/erasure-decode_test.go
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. bitrotReaders := make([]io.ReaderAt, len(disks)) for index, disk := range disks {
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/DefaultCompressionService.java
} return compress(data, 0, data.length, algorithm); } @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");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/util/ServerResponseValidator.java
} if (length < 0) { failedValidations.incrementAndGet(); bufferOverflowsPrevented.incrementAndGet(); throw new SmbException("Negative length: " + length); } // Check for integer overflow if (offset > buffer.length - length) { failedValidations.incrementAndGet();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
throw new IllegalArgumentException("Offsets and length must be non-negative"); } if (srcOffset + length > src.length) { throw new IllegalArgumentException( "Source array bounds exceeded: offset=" + srcOffset + ", length=" + length + ", array.length=" + src.length); } if (dstOffset + length > dst.length) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Strings.java
int maxSuffixLength = min(a.length(), b.length()); int s = 0; while (s < maxSuffixLength && a.charAt(a.length() - s - 1) == b.charAt(b.length() - s - 1)) { s++; } if (validSurrogatePairAt(a, a.length() - s - 1) || validSurrogatePairAt(b, b.length() - s - 1)) { s--; } return a.subSequence(a.length() - s, a.length()).toString(); } /**Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java
byte[] outputBuffer = new byte[testData.length + 100]; int writtenBytes = compressionService.decompress(compressed, 0, compressed.length, outputBuffer, 50, CompressionService.COMPRESSION_LZ77); assertEquals(testData.length, writtenBytes); byte[] extracted = new byte[testData.length]; System.arraycopy(outputBuffer, 50, extracted, 0, testData.length);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.1K 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/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) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
@Test @DisplayName("Should handle negative length in verify method") void testVerifyNegativeLength() { byte[] data = new byte[128]; boolean result = digest.verify(data, 0, -1, 0, response); assertFalse(result, "Should return false for negative length"); } @Test @DisplayName("Should handle offset+length exceeding buffer size in verify method")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0)