Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 100 for readbyte (0.3 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/internal/resolve/caching/DesugaringAttributeContainerSerializer.java

            int count = decoder.readSmallInt();
            for (int i = 0; i < count; i++) {
                String name = decoder.readString();
                byte type = decoder.readByte();
                if (type == BOOLEAN_ATTRIBUTE) {
                    attributes = attributesFactory.concat(attributes, Attribute.of(name, Boolean.class), decoder.readBoolean());
                } else if (type == STRING_ATTRIBUTE){
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedCodecTest.groovy

            def decoder = new KryoBackedDecoder(instr)
    
            then:
            instr.available() == 4108
            decoder.readPosition == 0
    
            when:
            decoder.readBoolean()
            decoder.readByte()
            decoder.readLong()
    
            then:
            instr.available() == 12 // decoder has buffered from instr
            decoder.readPosition == 10
    
            when:
            decoder.skipBytes(4098)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonInfo.java

            public DaemonInfo read(Decoder decoder) throws Exception {
                Address address = addresses.get(decoder.readInt());
                byte[] token = decoder.readBinary();
                State state = State.values()[decoder.readByte()];
                long lastBusy = decoder.readLong();
                DaemonContext context = DefaultDaemonContext.SERIALIZER.read(decoder);
                return new DaemonInfo(address, context, token, state, lastBusy);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. src/cmd/internal/pgo/serialize_test.go

    	r := bytes.NewReader(b)
    	consumeString := func() (string, bool) {
    		// First byte: how many bytes to read for this string? We only
    		// use a byte to avoid making humongous strings.
    		length, err := r.ReadByte()
    		if err != nil {
    			return "", false
    		}
    		if length == 0 {
    			return "", false
    		}
    
    		b := make([]byte, length)
    		_, err = r.Read(b)
    		if err != nil {
    			return "", false
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/compress/lzw/reader.go

    	toRead []byte // bytes to return from Read
    }
    
    // readLSB returns the next code for "Least Significant Bits first" data.
    func (r *Reader) readLSB() (uint16, error) {
    	for r.nBits < r.width {
    		x, err := r.r.ReadByte()
    		if err != nil {
    			return 0, err
    		}
    		r.bits |= uint32(x) << r.nBits
    		r.nBits += 8
    	}
    	code := uint16(r.bits & (1<<r.width - 1))
    	r.bits >>= r.width
    	r.nBits -= r.width
    	return code, nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:39 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. platforms/core-runtime/client-services/src/main/java/org/gradle/internal/daemon/client/serialization/ClasspathInferer.java

                char[] charBuffer = new char[reader.getMaxStringLength()];
                for (int i = 1; i < reader.getItemCount(); i++) {
                    int itemOffset = reader.getItem(i);
                    if (itemOffset > 0 && reader.readByte(itemOffset - 1) == 7) {
                        // A CONSTANT_Class entry, read the class descriptor
                        String classDescriptor = reader.readUTF8(itemOffset, charBuffer);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. src/image/jpeg/huffman.go

    				return 0, err
    			}
    			// There are no more bytes of data in this segment, but we may still
    			// be able to read the next symbol out of the previously read bits.
    			// First, undo the readByte that the ensureNBits call made.
    			if d.bytes.nUnreadable != 0 {
    				d.unreadByteStuffedByte()
    			}
    			goto slowPath
    		}
    	}
    	if v := h.lut[(d.bits.a>>uint32(d.bits.n-lutSize))&0xff]; v != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FileBackedBlockStore.java

                }
    
                DataInputStream inputStream = input.start(pos);
    
                BlockPayload payload = getPayload();
    
                // Read header
                byte type = inputStream.readByte();
                if (type != payload.getType()) {
                    throw blockCorruptedException();
                }
    
                // Read body
                payloadSize = inputStream.readInt();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Decoder.java

         *
         * @throws EOFException when the end of the byte stream is reached.
         */
        byte readByte() throws EOFException, IOException;
    
        /**
         * Reads bytes into the given buffer, filling the buffer. Can read any byte values that were written using one of the raw byte methods on {@link Encoder}, such as {@link
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

          } else {
            encodedCharBuffer.writeString(input, i, i + Character.charCount(codePoint), charset)
          }
    
          while (!encodedCharBuffer.exhausted()) {
            val b = encodedCharBuffer.readByte().toInt() and 0xff
            writeByte('%'.code)
            writeByte(HEX_DIGITS[b shr 4 and 0xf].code)
            writeByte(HEX_DIGITS[b and 0xf].code)
          }
        } else {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top