- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,073 for deflated (0.11 sec)
-
okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt
val deflated = deflater.deflate(goldenValue) assertThat(deflated.size).isLessThan(goldenValue.size) val inflated = inflater.inflate(deflated) assertThat(inflated).isEqualTo(goldenValue) } @Test fun `inflate deflate empty message`() { val deflater = MessageDeflater(false) val inflater = MessageInflater(false) val goldenValue = "".encodeUtf8()
Registered: 2024-06-16 04:42 - Last Modified: 2024-01-06 05:31 - 5K bytes - Viewed (0) -
src/compress/flate/inflate_test.go
"the quick brown fox jumped over", } deflated := make([]bytes.Buffer, 2) for i, s := range ss { w, _ := NewWriter(&deflated[i], 1) w.Write([]byte(s)) w.Close() } inflated := make([]bytes.Buffer, 2) f := NewReader(&deflated[0]) io.Copy(&inflated[0], f) f.(Resetter).Reset(&deflated[1], nil) io.Copy(&inflated[1], f) f.Close() for i, s := range ss {
Registered: 2024-06-12 16:32 - Last Modified: 2023-05-24 23:23 - 3.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/classpath/InPlaceClasspathBuilderTest.groovy
it.put("dir/deflated.txt", "bytes".bytes, ClasspathEntryVisitor.Entry.CompressionMethod.DEFLATED) } then: def zip = new ZipTestFixture(file) zip.hasCompression("store.txt", ZipEntry.STORED) zip.hasCompression("undefined.txt", ZipEntry.DEFLATED) zip.hasCompression("dir/deflated.txt", ZipEntry.DEFLATED) } def "can construct a directory"() {
Registered: 2024-06-12 18:38 - Last Modified: 2024-02-09 14:05 - 5.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/tasks/bundling/Zip.java
/** * Sets the compression level of the entries of the archive. If set to {@link ZipEntryCompression#DEFLATED} (the default), each entry is * compressed using the DEFLATE algorithm. If set to {@link ZipEntryCompression#STORED} the entries of the archive are left uncompressed. * * @param entryCompression {@code STORED} or {@code DEFLATED} */ public void setEntryCompression(ZipEntryCompression entryCompression) {
Registered: 2024-06-12 18:38 - Last Modified: 2022-10-28 08:29 - 5.6K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/AbstractZipEntry.java
Registered: 2024-06-12 18:38 - Last Modified: 2024-05-28 12:11 - 2.3K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/dsl/org.gradle.api.tasks.bundling.Zip.xml
Registered: 2024-06-12 18:38 - Last Modified: 2023-11-27 17:53 - 1003 bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/ClasspathWalker.java
switch (entry.getCompressionMethod()) { case STORED: return CompressionMethod.STORED; case DEFLATED: return CompressionMethod.DEFLATED; default: // Zip entries can be in many formats but JARs are unlikely to have them as JVM doesn't
Registered: 2024-06-12 18:38 - Last Modified: 2024-03-12 02:21 - 5.6K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/ZipEntry.java
public interface ZipEntry { /** * The compression method used for an entry */ enum ZipCompressionMethod { /** * The entry is compressed with DEFLATE algorithm. */ DEFLATED, /** * The entry is stored uncompressed. */ STORED, /**
Registered: 2024-06-12 18:38 - Last Modified: 2024-05-28 12:11 - 2.5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/InPlaceClasspathBuilder.java
private void configureCompression(ZipArchiveEntry entry, CompressionMethod compressionMethod, byte[] contents) { if (shouldCompress(compressionMethod)) { entry.setMethod(ZipArchiveEntry.DEFLATED); } else { entry.setMethod(ZipArchiveEntry.STORED); // A stored ZipEntry requires setting size and CRC32 upfront. // See https://stackoverflow.com/q/1206970.
Registered: 2024-06-12 18:38 - Last Modified: 2024-02-09 14:05 - 6.9K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingResourceHasherTest.groovy
return !unsafe } @Override ZipEntry.ZipCompressionMethod getCompressionMethod() { return ZipEntry.ZipCompressionMethod.DEFLATED } } return new DefaultZipEntryContext(zipEntry, file.path, "foo.zip") } RegularFileSnapshotContext snapshotContext(File file, FileType fileType = FileType.RegularFile) {
Registered: 2024-06-12 18:38 - Last Modified: 2023-09-28 15:09 - 7.9K bytes - Viewed (0)