- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 166 for foobytes (0.11 sec)
-
subprojects/core/src/testFixtures/groovy/org/gradle/util/JarUtils.groovy
* jar("path/to/file.jar") { * manifest { // can be withoutManifest() * mainAttributes.putValue("Multi-Release", "true") * } * * entry("Foo.class", fooBytes) * versionedEntry(11, "Foo.class", fooBytesForJava11) * } * * </pre> * @param jarFile the jar file to create * @param closure the configuration of the JAR file
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 07 19:17:11 UTC 2023 - 6.4K bytes - Viewed (0) -
cmd/erasure-healing_test.go
t.Fatalf("part.1 not healed correctly") } // Test 2, Corrupt part.1 err = firstDisk.WriteAll(context.Background(), bucket, pathJoin(object, fi.DataDir, "part.1"), []byte("foobytes")) if err != nil { t.Fatalf("Failed to write a file - %v", err) } _, err = objLayer.HealObject(ctx, bucket, object, "", madmin.HealOpts{ScanMode: madmin.HealNormalScan}) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 49K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/testFixtures/groovy/org/gradle/internal/serialize/SerializerSpec.groovy
return fromBytes(bytes, serializer) } <T> T fromBytes(byte[] bytes, Serializer<T> serializer) { return serializer.read(getDecoder().newInstance(new ByteArrayInputStream(bytes))) } <T> byte[] toBytes(T value, Serializer<T> serializer) { def bytes = new ByteArrayOutputStream() def encoder = getEncoder().newInstance(bytes) serializer.write(encoder, value)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 2.3K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/serializer/LogSerializerSpec.groovy
public <T> T serialize(T value, Serializer<T> serializer) { def bytes = toBytes(value, serializer) return fromBytes(bytes, serializer) } public <T> T fromBytes(byte[] bytes, Serializer<T> serializer) { return serializer.read(new KryoBackedDecoder(new ByteArrayInputStream(bytes))) } public <T> byte[] toBytes(T value, Serializer<T> serializer) { def bytes = new ByteArrayOutputStream()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 8.2K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/DefaultSerializerRegistryTest.groovy
registry.register(Integer, intSerializer) registry.register(Long, longSerializer) def serializer2 = registry.build(Number) expect: fromBytes(toBytes(123L, serializer1), serializer2) == 123L fromBytes(toBytes(123, serializer1), serializer2) == 123 } def "cannot write value with type that has not been registered"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 6.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/ComponentSelectionReasonSerializerTest.groovy
} def "multiple writes of the same custom reason"() { when: def single = toBytes(withReason("hello"), serializer) def withDuplicate = toBytes(withReasons("hello", "hello"), serializer) def withoutDuplicate = toBytes(withReasons("hello", "other"), serializer) then: single.length < withDuplicate.length withDuplicate.length < 2*single.length
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 4.7K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/BaseSerializerFactoryTest.groovy
} def "uses efficient serialization for Paths"() { expect: def serializer = factory.getSerializerFor(Path) def encoded = toBytes(Paths.get("some-file"), serializer) fromBytes(encoded, serializer) == Paths.get("some-file") encoded.length == 10 } def "uses efficient serialization for Long"() { expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 2.9K bytes - Viewed (0) -
src/crypto/internal/nistec/fiat/generate.go
"--package-name", "fiat", "--no-prefix-fiat", c.Prefix, "64", c.Prime, "mul", "square", "add", "sub", "one", "from_montgomery", "to_montgomery", "selectznz", "to_bytes", "from_bytes") cmd.Stderr = os.Stderr out, err := cmd.Output() if err != nil { log.Fatal(err) } out, err = format.Source(out) if err != nil { log.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 12 00:04:29 UTC 2022 - 9.1K bytes - Viewed (0) -
internal/s3select/sql/value.go
func FromNull() *Value { return &Value{value: nil} } // FromMissing creates a Value with Missing value func FromMissing() *Value { return &Value{value: Missing{}} } // FromBytes creates a Value from a []byte func FromBytes(b []byte) *Value { return &Value{value: b} } // FromArray creates a Value from an array of values. func FromArray(a []Value) *Value { return &Value{value: a} }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Feb 25 20:31:19 UTC 2022 - 20.2K bytes - Viewed (0)