Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 76 for readbyte (0.15 sec)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        // 0 - 63 bytes
        var length = source.readByte().toInt()
    
        if (length < 0) {
          // compressed name pointer, first two bits are 1
          // drop second byte of compression offset
          source.skip(1)
        } else {
          while (length > 0) {
            // skip each part of the domain name
            source.skip(length.toLong())
            length = source.readByte().toInt()
          }
        }
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. src/internal/trace/batch.go

    }
    
    // readBatch reads the next full batch from r.
    func readBatch(r interface {
    	io.Reader
    	io.ByteReader
    }) (batch, uint64, error) {
    	// Read batch header byte.
    	b, err := r.ReadByte()
    	if err != nil {
    		return batch{}, 0, err
    	}
    	if typ := event.Type(b); typ != go122.EvEventBatch && typ != go122.EvExperimentalBatch {
    		return batch{}, 0, fmt.Errorf("expected batch event, got %s", go122.EventString(typ))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/FingerprintMapSerializer.java

            FileType fileType = readFileType(decoder);
            HashCode contentHash = readContentHash(fileType, decoder);
    
            byte fingerprintKind = decoder.readByte();
            switch (fingerprintKind) {
                case DEFAULT_NORMALIZATION:
                    String normalizedPath = decoder.readString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        in.readFully(b);
        assertEquals(-100, b[0]);
        assertEquals(100, b[1]);
        assertEquals(true, in.readBoolean());
        assertEquals(false, in.readBoolean());
        assertEquals(100, in.readByte());
        assertEquals(-100, in.readByte());
        assertEquals(200, in.readUnsignedByte());
        assertEquals('\u6100', in.readChar());
        assertEquals(-12150, in.readShort());
        assertEquals(20675, in.readUnsignedShort());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/InterHubMessageSerializer.java

                this.decoder = decoder;
                this.payloadReader = payloadReader;
            }
    
            @Override
            public InterHubMessage read() throws Exception {
                switch (decoder.readByte()) {
                    case CHANNEL_MESSAGE:
                        ChannelIdentifier channelId = readChannelId();
                        Object payload = payloadReader.read();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 5K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/ComponentSelectionDescriptorSerializer.java

        }
    
        @Override
        public ComponentSelectionDescriptor read(Decoder decoder) throws IOException {
            ComponentSelectionCause cause = ComponentSelectionCause.values()[decoder.readByte()];
            String desc = decoder.readString();
            String defaultReason = cause.getDefaultReason();
            if (desc.equals(defaultReason)) {
                return componentSelectionDescriptorFactory.newDescriptor(cause);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/initialization/transform/utils/ClassAnalysisUtils.java

                int itemOffset = reader.getItem(i);
                // see https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4
                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: Tue Feb 27 13:49:15 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. src/math/big/intconv.go

    	return z, base, nil
    }
    
    func scanSign(r io.ByteScanner) (neg bool, err error) {
    	var ch byte
    	if ch, err = r.ReadByte(); err != nil {
    		return false, err
    	}
    	switch ch {
    	case '-':
    		neg = true
    	case '+':
    		// nothing to do
    	default:
    		r.UnreadByte()
    	}
    	return
    }
    
    // byteReader is a local wrapper around fmt.ScanState;
    // it implements the ByteReader interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/FileSystemSnapshotSerializer.java

            return EntryType.values()[decoder.readByte()];
        }
    
        private static void writeEntryType(Encoder encoder, EntryType type) throws IOException {
            encoder.writeByte((byte) type.ordinal());
        }
    
        private static FileMetadata.AccessType readAccessType(Decoder decoder) throws IOException {
            return FileMetadata.AccessType.values()[decoder.readByte()];
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 15:45:55 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/VisitableURLClassLoaderSpecSerializer.java

                encoder.writeString(url.toString());
            }
        }
    
        @Override
        public VisitableURLClassLoader.Spec read(Decoder decoder) throws Exception {
            byte typeTag = decoder.readByte();
            String name = decoder.readString();
            List<URL> classpath = new ArrayList<>();
            int classpathSize = decoder.readInt();
            for (int i=0; i<classpathSize; i++) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top