Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for readVarint (0.31 sec)

  1. src/runtime/type.go

    type name = abi.Name
    
    type structtype = abi.StructType
    
    func pkgPath(n name) string {
    	if n.Bytes == nil || *n.Data(0)&(1<<2) == 0 {
    		return ""
    	}
    	i, l := n.ReadVarint(1)
    	off := 1 + i + l
    	if *n.Data(0)&(1<<1) != 0 {
    		i2, l2 := n.ReadVarint(off)
    		off += i2 + l2
    	}
    	var nameOff nameOff
    	copy((*[4]byte)(unsafe.Pointer(&nameOff))[:], (*[4]byte)(unsafe.Pointer(n.Data(off)))[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. src/runtime/panic.go

    	print("\n")
    }
    
    // readvarintUnsafe reads the uint32 in varint format starting at fd, and returns the
    // uint32 and a pointer to the byte following the varint.
    //
    // The implementation is the same with runtime.readvarint, except that this function
    // uses unsafe.Pointer for speed.
    func readvarintUnsafe(fd unsafe.Pointer) (uint32, unsafe.Pointer) {
    	var r uint32
    	var shift int
    	for {
    		b := *(*uint8)(fd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  3. src/reflect/type.go

    	abi.StructType
    }
    
    func pkgPath(n abi.Name) string {
    	if n.Bytes == nil || *n.DataChecked(0, "name flag field")&(1<<2) == 0 {
    		return ""
    	}
    	i, l := n.ReadVarint(1)
    	off := 1 + i + l
    	if n.HasTag() {
    		i2, l2 := n.ReadVarint(off)
    		off += i2 + l2
    	}
    	var nameOff int32
    	// Note that this field may not be aligned in memory,
    	// so we cannot use a direct int32 assignment here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  4. src/internal/trace/generation.go

    			// Read the frame data.
    			pc, err := binary.ReadUvarint(r)
    			if err != nil {
    				return fmt.Errorf("reading frame %d's PC for stack %d: %w", i+1, id, err)
    			}
    			funcID, err := binary.ReadUvarint(r)
    			if err != nil {
    				return fmt.Errorf("reading frame %d's funcID for stack %d: %w", i+1, id, err)
    			}
    			fileID, err := binary.ReadUvarint(r)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. src/internal/trace/batch.go

    	// for the batch.
    	gen, err := binary.ReadUvarint(r)
    	if err != nil {
    		return batch{}, gen, fmt.Errorf("error reading batch gen: %w", err)
    	}
    	m, err := binary.ReadUvarint(r)
    	if err != nil {
    		return batch{}, gen, fmt.Errorf("error reading batch M ID: %w", err)
    	}
    	ts, err := binary.ReadUvarint(r)
    	if err != nil {
    		return batch{}, gen, fmt.Errorf("error reading batch timestamp: %w", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/internal/trace/raw/reader.go

    func (r *Reader) readArgs(n int) ([]uint64, error) {
    	var args []uint64
    	for i := 0; i < n; i++ {
    		val, err := binary.ReadUvarint(r.r)
    		if err != nil {
    			return nil, err
    		}
    		args = append(args, val)
    	}
    	return args, nil
    }
    
    func (r *Reader) readData() ([]byte, error) {
    	len, err := binary.ReadUvarint(r.r)
    	if err != nil {
    		return nil, err
    	}
    	var data []byte
    	for i := 0; i < int(len); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. maven-core/src/test/resources/projects/modelsourcebasedir/pom.xml

      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>test.readparent</groupId>
      <artifactId>local-parent</artifactId>
      <packaging>pom</packaging>
      <version>1.0</version>
    
      <dependencies>
        <dependency>
          <groupId>blah</groupId>
          <artifactId>blah</artifactId>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Aug 17 08:59:48 UTC 2021
    - 645 bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/metadata/ProjectMetadataController.kt

        private
        suspend fun ReadContext.readVariants(factory: CalculatedValueContainerFactory): List<LocalVariantMetadata> {
            return readList {
                readVariant(factory)
            }
        }
    
        private
        suspend fun ReadContext.readVariant(factory: CalculatedValueContainerFactory): LocalVariantMetadata {
            val variantName = readString()
            val identifier = readNonNull<VariantResolveMetadata.Identifier>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. src/internal/pkgbits/decoder.go

    	}
    }
    
    func (r *Decoder) rawUvarint() uint64 {
    	x, err := readUvarint(&r.Data)
    	r.checkErr(err)
    	return x
    }
    
    // readUvarint is a type-specialized copy of encoding/binary.ReadUvarint.
    // This avoids the interface conversion and thus has better escape properties,
    // which flows up the stack.
    func readUvarint(r *strings.Reader) (uint64, error) {
    	var x uint64
    	var s uint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

                    }
                }
    
                // we pass a cloned model, so that resolving the parent version does not affect the returned model
                ModelData parentData = readParent(model, currentData.source(), request, problems);
    
                if (parentData == null) {
                    currentData = superData;
                } else if (!parentIds.add(parentData.id())) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Jun 07 07:31:02 UTC 2024
    - 61.9K bytes
    - Viewed (0)
Back to top