Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 256 for writeAny (0.13 sec)

  1. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/ByteOutputTest.groovy

            when:
            def stream = output.start(0)
            stream.writeInt(123)
            stream.writeByte(12)
            output.done()
    
            then:
            file.length() == 5
            file.seek(0)
            file.readInt() == 123
            file.readByte() == 12
    
            when:
            stream = output.start(5)
            stream.writeInt(321)
            output.done()
    
            then:
            file.length() == 9
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/AbstractProjectAccessorsSourceGenerator.java

            writeLn("    /**");
            String path = descriptor.getPath();
            writeLn("     * Creates a project dependency on the project at path \"" + path + "\"");
            writeLn("     */");
            String returnType = toClassName(path, rootProjectName(descriptor));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/StringDeduplicatingKryoBackedEncoder.java

        @Override
        public void writeSmallLong(long value) {
            output.writeLong(value, true);
        }
    
        @Override
        public void writeInt(int value) {
            output.writeInt(value);
        }
    
        @Override
        public void writeSmallInt(int value) {
            output.writeInt(value, true);
        }
    
        @Override
        public void writeShort(short value) throws IOException {
            output.writeShort(value);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. testing/integ-test/src/integTest/groovy/org/gradle/integtests/ProjectLoadingIntegrationTest.java

            createDirs("root", "root/sub");
            settingsFile.writelns(
                "rootProject.projectDir = new File(settingsDir, 'root')",
                "include 'sub'",
                "project(':sub').projectDir = new File(settingsDir, 'root/sub')"
            );
    
            getTestDirectory().createDir("root").file("build.gradle").writelns("allprojects { task thing }");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          frameHeader(
            streamId = 0,
            length = 8,
            type = TYPE_PING,
            flags = if (ack) FLAG_ACK else FLAG_NONE,
          )
          sink.writeInt(payload1)
          sink.writeInt(payload2)
          sink.flush()
        }
      }
    
      /**
       * Tell the peer to stop creating streams and that we last processed `lastGoodStreamId`, or zero
       * if no streams were processed.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/ByteInputTest.groovy

        }
    
        def cleanup() {
            file.close()
        }
    
        def "can reuse to read from multiple locations in file"() {
            given:
            file.seek(0)
            file.writeInt(123)
            file.writeInt(321)
            file.writeInt(456)
    
            expect:
            def stream = input.start(0)
            stream.readInt() == 123
            stream.readInt() == 321
            input.done()
    
            def stream2 = input.start(4)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/RecordingObjectOutputStream.kt

        }
    
        override fun defaultWriteObject() = record {
            beanStateWriterFor(beanType).run {
                writeStateOf(bean)
            }
        }
    
        override fun writeInt(`val`: Int) = record {
            writeInt(`val`)
        }
    
        override fun writeUTF(str: String) = record {
            writeString(str)
        }
    
        override fun writeObjectOverride(obj: Any?) = record {
            write(obj)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-tooling-models/src/main/kotlin/org/gradle/declarative/dsl/schema/DataProperty.kt

            PropertyMode.ReadWrite::class,
            PropertyMode.ReadOnly::class,
            PropertyMode.WriteOnly::class
        ])
        sealed interface PropertyMode : Serializable {
            interface ReadWrite : PropertyMode
            interface ReadOnly : PropertyMode
            interface WriteOnly : PropertyMode
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:03 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/DefaultBinaryStoreTest.groovy

        def "stores binary data"() {
            def store = new DefaultBinaryStore(temp.file("foo.bin"))
    
            when:
            store.write({ it.writeInt(10) } as BinaryStore.WriteAction)
            store.write({ it.writeString("x") } as BinaryStore.WriteAction)
            def data1 = store.done()
            store.write({ it.writeString("y") } as BinaryStore.WriteAction)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/deps/IntSetSerializer.java

            }
            return result;
        }
    
        @Override
        public void write(Encoder encoder, IntSet value) throws Exception {
            encoder.writeInt(value.size());
            IntIterator iterator = value.iterator();
            while(iterator.hasNext()) {
                encoder.writeInt(iterator.nextInt());
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 15:22:57 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top