Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 73 for writeInt8 (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/MapSerializer.java

                valueMap.put(key, value);
            }
            return valueMap;
        }
    
        @Override
        public void write(Encoder encoder, Map<U, V> value) throws Exception {
            encoder.writeInt(value.size());
            for (Map.Entry<U, V> entry : value.entrySet()) {
                keySerializer.write(encoder, entry.getKey());
                valueSerializer.write(encoder, entry.getValue());
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. cmd/local-locker_gen.go

    	err = en.Append(0x83, 0xa5, 0x54, 0x6f, 0x74, 0x61, 0x6c)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Total)
    	if err != nil {
    		err = msgp.WrapError(err, "Total")
    		return
    	}
    	// write "Writes"
    	err = en.Append(0xa6, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Writes)
    	if err != nil {
    		err = msgp.WrapError(err, "Writes")
    		return
    	}
    	// write "Reads"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageInflater.kt

      fun inflate(buffer: Buffer) {
        require(deflatedBytes.size == 0L)
    
        if (noContextTakeover) {
          inflater.reset()
        }
    
        deflatedBytes.writeAll(buffer)
        deflatedBytes.writeInt(OCTETS_TO_ADD_BEFORE_INFLATION)
    
        val totalBytesToRead = inflater.bytesRead + deflatedBytes.size
    
        // We cannot read all, as the source does not close.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      fun allocate(count: Int): List<InetAddress> {
        val from = nextAddress
        nextAddress += count
        return (from until nextAddress)
          .map {
            return@map InetAddress.getByAddress(
              Buffer().writeInt(it.toInt()).readByteArray(),
            )
          }
      }
    
      /** Allocates and returns `count` fake IPv6 addresses like [::ff00:64, ::ff00:65].  */
      fun allocateIpv6(count: Int): List<InetAddress> {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. internal/bucket/replication/datatypes_gen.go

    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = Type(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z Type) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteInt(int(z))
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z Type) MarshalMsg(b []byte) (o []byte, err error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Mar 08 19:08:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/AbstractEncoder.java

            throw new UnsupportedOperationException();
        }
    
        @Override
        public void writeSmallInt(int value) throws IOException {
            writeInt(value);
        }
    
        @Override
        public void writeSmallLong(long value) throws IOException {
            writeLong(value);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top