- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for length_is (0.15 sec)
-
src/bytes/compare_test.go
} } func TestCompareBytes(t *testing.T) { lengths := make([]int, 0) // lengths to test in ascending order for i := 0; i <= 128; i++ { lengths = append(lengths, i) } lengths = append(lengths, 256, 512, 1024, 1333, 4095, 4096, 4097) if !testing.Short() { lengths = append(lengths, 65535, 65536, 65537, 99999) } n := lengths[len(lengths)-1] a := make([]byte, n+1) b := make([]byte, n+1)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 13 23:11:42 UTC 2023 - 6.8K bytes - Viewed (0) -
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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/main/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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 34.7K bytes - Viewed (0) -
tensorflow/c/eager/abstract_operation.h
std::vector<size_t> lengths; raw_strs.reserve(values.size()); lengths.reserve(values.size()); for (const auto& s : values) { raw_strs.emplace_back(s.data()); lengths.emplace_back(s.size()); } return SetAttrStringList(attr_name, reinterpret_cast<const void**>(raw_strs.data()), lengths.data(), values.size()); }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 7.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/Collections2Test.java
return suite; } static final Predicate<@Nullable String> NOT_YYY_ZZZ = input -> !"yyy".equals(input) && !"zzz".equals(input); static final Predicate<String> LENGTH_1 = input -> input.length() == 1; @J2ktIncompatible @GwtIncompatible // suite private static Test testsForFilter() { return CollectionTestSuiteBuilder.using( new TestStringCollectionGenerator() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 10:16:44 UTC 2024 - 19.7K 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 Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 14K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/Collections2Test.java
return suite; } static final Predicate<@Nullable String> NOT_YYY_ZZZ = input -> !"yyy".equals(input) && !"zzz".equals(input); static final Predicate<String> LENGTH_1 = input -> input.length() == 1; @J2ktIncompatible @GwtIncompatible // suite private static Test testsForFilter() { return CollectionTestSuiteBuilder.using( new TestStringCollectionGenerator() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 10:16:44 UTC 2024 - 19.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java
* * @author Jared Levy */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public class TreeMultimapExplicitTest extends TestCase { /** * Compare strings lengths, and if the lengths are equal compare the strings. A {@code null} is * less than any non-null value. */ private enum StringLength implements Comparator<@Nullable String> { COMPARATOR; @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 15.7K 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 Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 21.1K bytes - Viewed (0)