Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for DataChecked (0.13 sec)

  1. src/internal/abi/type.go

    //   cmd/link/internal/ld/decodesym.go
    
    type Name struct {
    	Bytes *byte
    }
    
    // DataChecked does pointer arithmetic on n's Bytes, and that arithmetic is asserted to
    // be safe for the reason in whySafe (which can appear in a backtrace, etc.)
    func (n Name) DataChecked(off int, whySafe string) *byte {
    	return (*byte)(addChecked(unsafe.Pointer(n.Bytes), uintptr(off), whySafe))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. src/reflect/export_test.go

    func FirstMethodNameBytes(t Type) *byte {
    	_ = pinUnexpMethI
    
    	ut := t.uncommon()
    	if ut == nil {
    		panic("type has no methods")
    	}
    	m := ut.Methods()[0]
    	mname := t.(*rtype).nameOff(m.Name)
    	if *mname.DataChecked(0, "name flag field")&(1<<2) == 0 {
    		panic("method name does not have pkgPath *string")
    	}
    	return mname.Bytes
    }
    
    type OtherPkgFields struct {
    	OtherExported   int
    	otherUnexported int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/internal/reflectlite/export_test.go

    func FirstMethodNameBytes(t Type) *byte {
    	_ = pinUnexpMethI
    
    	ut := t.uncommon()
    	if ut == nil {
    		panic("type has no methods")
    	}
    	m := ut.Methods()[0]
    	mname := t.(rtype).nameOff(m.Name)
    	if *mname.DataChecked(0, "name flag field")&(1<<2) == 0 {
    		panic("method name does not have pkgPath *string")
    	}
    	return mname.Bytes
    }
    
    type Buffer struct {
    	buf []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/internal/reflectlite/type.go

    		return ""
    	}
    	i, l := n.readVarint(1)
    	i2, l2 := n.readVarint(1 + i + l)
    	return unsafe.String(n.data(1+i+l+i2, "non-empty string"), l2)
    }
    
    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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/inline/inlheur/scoring.go

    // 76     -5n         PROMOTED runtime.persistentalloc   mcheckmark.go:48:45|3   inLoopAdj
    // 201    0           --- PGO  unicode.DecodeRuneInString        utf8.go:312:30|1
    // 7      -5          --- PGO  internal/abi.Name.DataChecked     type.go:625:22|0        inLoopAdj
    //
    // In the dump above, "Score" is the final score calculated for the
    // callsite, "Adjustment" is the amount added to or subtracted from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. src/reflect/type.go

    // Struct field
    type structField = abi.StructField
    
    // structType represents a struct type.
    type structType struct {
    	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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
Back to top