Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,912 for pointId (0.14 sec)

  1. src/internal/weak/pointer.go

    	ptr = abi.Escape(ptr)
    
    	var u unsafe.Pointer
    	if ptr != nil {
    		u = runtime_registerWeakPointer(unsafe.Pointer(ptr))
    	}
    	runtime.KeepAlive(ptr)
    	return Pointer[T]{u}
    }
    
    // Strong creates a strong pointer from the weak pointer.
    // Returns nil if the original value for the weak pointer was reclaimed by
    // the garbage collector.
    // If a weak pointer points to an object with a finalizer, then Strong will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:13:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/go/types/pointer.go

    // Elem returns the element type for the given pointer p.
    func (p *Pointer) Elem() Type { return p.base }
    
    func (p *Pointer) Underlying() Type { return p }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 761 bytes
    - Viewed (0)
  3. test/interface/pointer.go

    func AddInst(Inst) *Inst {
    	print("ok in addinst\n")
    	return nil
    }
    
    func main() {
    	print("call addinst\n")
    	var _ Inst = AddInst(new(Start)) // ERROR "pointer to interface|incompatible type"
    	print("return from  addinst\n")
    	var _ *Inst = new(Start) // ERROR "pointer to interface|incompatible type"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 28 14:28:33 UTC 2023
    - 758 bytes
    - Viewed (0)
  4. pkg/ptr/pointer.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ptr
    
    import (
    	"fmt"
    )
    
    // Of returns a pointer to the input. In most cases, callers should just do &t. However, in some cases
    // Go cannot take a pointer. For example, `ptr.Of(f())`.
    func Of[T any](t T) *T {
    	return &t
    }
    
    // OrEmpty returns *t if its non-nil, or else an empty T
    func OrEmpty[T any](t *T) T {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 07 14:56:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/go/internal/gccgoimporter/testdata/pointer.gox

    v1;
    package pointer;
    pkgpath pointer;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 17 23:03:13 UTC 2015
    - 83 bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/testdata/pointer.go

    package pointer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 17 23:03:13 UTC 2015
    - 36 bytes
    - Viewed (0)
  7. src/runtime/checkptr.go

    	// but neither ptr nor end point into one themselves.
    
    	return checkptrBase(ptr) != checkptrBase(end)
    }
    
    func checkptrArithmetic(p unsafe.Pointer, originals []unsafe.Pointer) {
    	if 0 < uintptr(p) && uintptr(p) < minLegalPointer {
    		throw("checkptr: pointer arithmetic computed bad pointer value")
    	}
    
    	// Check that if the computed pointer p points into a heap
    	// object, then one of the original pointers must have pointed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/liveness/plive.go

    			pos, effect := lv.valueEffects(v)
    			printed = false
    			printed = lv.printeffect(printed, "uevar", pos, effect&uevar != 0)
    			printed = lv.printeffect(printed, "varkill", pos, effect&varkill != 0)
    			if printed {
    				fmt.Printf("\n")
    			}
    
    			if pcdata.StackMapValid() {
    				fmt.Printf("\tlive=")
    				printed = false
    				if pcdata.StackMapValid() {
    					live := lv.stackMaps[pcdata]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/pointer.go

    package types2
    
    // A Pointer represents a pointer type.
    type Pointer struct {
    	base Type // element type
    }
    
    // NewPointer returns a new pointer type for the given element (base) type.
    func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} }
    
    // Elem returns the element type for the given pointer p.
    func (p *Pointer) Elem() Type { return p.base }
    
    func (p *Pointer) Underlying() Type { return p }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 635 bytes
    - Viewed (0)
  10. src/unsafe/unsafe.go

    type IntegerType int
    
    // Pointer represents a pointer to an arbitrary type. There are four special operations
    // available for type Pointer that are not available for other types:
    //   - A pointer value of any type can be converted to a Pointer.
    //   - A Pointer can be converted to a pointer value of any type.
    //   - A uintptr can be converted to a Pointer.
    //   - A Pointer can be converted to a uintptr.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top