- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for length_is (0.06 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
} var lengthBits = source.readByte().toLong() and 0xff if (lengthBits == 0L || lengthBytes == 1 && lengthBits and 0b1000_0000 == 0L) { throw ProtocolException("invalid encoding for length") } for (i in 1 until lengthBytes) { lengthBits = lengthBits shl 8 lengthBits += source.readByte().toInt() and 0xff }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt
val sources = mutableListOf<Source>() val lengths = this.lengths.clone() // Defensive copy since these can be zeroed out. try { for (i in 0 until valueCount) { sources += newSource(i) } return Snapshot(key, sequenceNumber, sources, lengths) } catch (_: FileNotFoundException) { // A file must have been deleted manually!
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 34.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/Collections2Test.java
return suite; } static final Predicate<@Nullable String> NOT_YYY_ZZZ = input -> !Objects.equals(input, "yyy") && !Objects.equals(input, "zzz"); static final Predicate<String> LENGTH_1 = input -> input.length() == 1; @J2ktIncompatible @GwtIncompatible // suite @AndroidIncompatible // test-suite builders private static Test testsForFilter() { return CollectionTestSuiteBuilder.using(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
byte[] data = new byte[size]; assertDoesNotThrow(() -> request.setData(data, 0, size)); } @ParameterizedTest @DisplayName("Should handle various offsets and lengths") @CsvSource({ "1024, 0, 1024", "1024, 100, 900", "1024, 500, 524", "2048, 1024, 1024", "4096, 2048, 2048", "65536, 32768, 32768" }) void testVariousOffsetsAndLengths(int dataSize, int offset, int length) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java
* (related to MNG-6572 optimization) */ @Test void testVersionEqualWithLeadingZeroes() { // versions with string lengths from 1 to 19 String[] arr = new String[] { "0000000000000000001", "000000000000000001", "00000000000000001", "0000000000000001", "000000000000001",
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 17.8K bytes - Viewed (0) -
cmd/erasure-decode_test.go
t.Errorf("Test %d: read returns wrong file content", i) } } } } } // Test erasureDecode with random offset and lengths. // This test is t.Skip()ed as it a long time to run, hence should be run // explicitly after commenting out t.Skip() func TestErasureDecodeRandomOffsetLength(t *testing.T) { if testing.Short() { t.Skip() }
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/internal/smb2/Smb2EncryptionContext.java
if (keyManager == null && (encryptionKey == null || decryptionKey == null)) { log.error("No encryption keys available"); return false; } // Validate key lengths try { int expectedKeyLength = getKeyLength(); byte[] encKey = getEncryptionKey(); byte[] decKey = getDecryptionKey(); try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/entity/FessUserTest.java
return; } assertNotNull("Expected array is null but actual is not", expected); assertNotNull("Actual array is null but expected is not", actual); assertEquals("Array lengths differ", expected.length, actual.length); for (int i = 0; i < expected.length; i++) { assertEquals("Arrays differ at index " + i, expected[i], actual[i]); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
baseAuth.close(); startAuth.close(); middleAuth.close(); endAuth.close(); } } /** * Test constant-time comparison with various password lengths. */ @Test public void testConstantTimeWithDifferentLengths() throws Exception { char[] password1 = "short".toCharArray(); char[] password2 = "verylongpasswordthatisdifferent".toCharArray();
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/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
int actualLength = (int) lengthField.get(response); assertEquals(expectedLength, actualLength); } @DisplayName("Test readParametersWireFormat with various lengths") @ParameterizedTest @ValueSource(ints = { 0, 1, 100, 1000, 65535, Integer.MAX_VALUE }) void testReadParametersWireFormatWithVariousLengths(int expectedLength) throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0)