Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 116 for writeInt8 (0.36 sec)

  1. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/OrdinalNodeCodec.kt

    
    class OrdinalNodeCodec(
        private val ordinalGroups: OrdinalGroupFactory
    ) : Codec<OrdinalNode> {
        override suspend fun WriteContext.encode(value: OrdinalNode) {
            writeEnum(value.type)
            writeInt(value.ordinalGroup.ordinal)
        }
    
        override suspend fun ReadContext.decode(): OrdinalNode {
            val ordinalType = readEnum<OrdinalNode.Type>()
            val ordinal = readInt()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockInfoSerializer.java

        public byte getVersion() {
            return 3;
        }
    
        public void write(DataOutput dataOutput, LockInfo lockInfo) throws IOException {
            dataOutput.writeInt(lockInfo.port);
            dataOutput.writeLong(lockInfo.lockId);
            dataOutput.writeUTF(trimIfNecessary(lockInfo.pid));
            dataOutput.writeUTF(trimIfNecessary(lockInfo.operation));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestEventSerializer.java

                if (expectedContent == null) {
                    encoder.writeInt(-1);
                } else {
                    encoder.writeInt(expectedContent.length);
                    encoder.writeBytes(expectedContent);
                }
                byte[] actualContent = value.getDetails().getActualContent();
                if (actualContent == null) {
                    encoder.writeInt(-1);
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/RegexpPatternCodec.kt

    import java.util.regex.Pattern
    
    
    object RegexpPatternCodec : Codec<Pattern> {
        override suspend fun WriteContext.encode(value: Pattern) {
            writeString(value.pattern())
            writeInt(value.flags())
        }
    
        override suspend fun ReadContext.decode(): Pattern? {
            return Pattern.compile(readString(), readInt())
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/JavaObjectSerializationCodecTest.kt

            var someInt: Int? = null
        ) : Serializable
    
        open class ExternalizableBean(var value: Int = 0) : Externalizable {
    
            override fun writeExternal(out: ObjectOutput) {
                out.writeInt(value)
            }
    
            override fun readExternal(`in`: ObjectInput) {
                value = `in`.readInt()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteArrayDataOutput out = ByteStreams.newDataOutput();
        out.writeInt(0x12345678);
        out.writeInt(0x76543210);
        assertThat(out.toByteArray()).isEqualTo(bytes);
      }
    
      public void testNewDataOutput_sized() {
        ByteArrayDataOutput out = ByteStreams.newDataOutput(4);
        out.writeInt(0x12345678);
        out.writeInt(0x76543210);
        assertThat(out.toByteArray()).isEqualTo(bytes);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  7. platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/tooling/internal/provider/serialization/PayloadSerializerObjectOutputStream.java

            Class<?> targetClass = desc.forClass();
            writeClass(targetClass);
        }
    
        @Override
        protected void annotateProxyClass(Class<?> cl) throws IOException {
            writeInt(cl.getInterfaces().length);
            for (Class<?> type : cl.getInterfaces()) {
                writeClass(type);
            }
        }
    
        private void writeClass(Class<?> targetClass) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 00:13:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedDecoderTest.groovy

        }
    
        InputStream encoded(String text) {
            def stream = new ByteArrayOutputStream()
            def encoder = new KryoBackedEncoder(stream)
            encoder.writeString(text)
            encoder.writeInt(12)
            encoder.flush()
            return new ByteArrayInputStream(stream.toByteArray())
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

      }
    
      @Test
      fun writeSingleByteInt() {
        hpackWriter!!.writeInt(10, 31, 0)
        assertBytes(10)
        hpackWriter!!.writeInt(10, 31, 0xe0)
        assertBytes(0xe0 or 10)
      }
    
      @Test
      fun writeMultibyteInt() {
        hpackWriter!!.writeInt(1337, 31, 0)
        assertBytes(31, 154, 10)
        hpackWriter!!.writeInt(1337, 31, 0xe0)
        assertBytes(0xe0 or 31, 154, 10)
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/AbstractCollectionSerializer.java

                values.add(entrySerializer.read(decoder));
            }
            return values;
        }
    
        @Override
        public void write(Encoder encoder, C value) throws Exception {
            encoder.writeInt(value.size());
            for (T t : value) {
                entrySerializer.write(encoder, t);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top