Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for packEface (0.07 sec)

  1. src/internal/reflectlite/value.go

    		panic("can't call pointer on a non-pointer Value")
    	}
    	if v.flag&flagIndir != 0 {
    		return *(*unsafe.Pointer)(v.ptr)
    	}
    	return v.ptr
    }
    
    // packEface converts v to the empty interface.
    func packEface(v Value) any {
    	t := v.typ()
    	var i any
    	e := (*abi.EmptyInterface)(unsafe.Pointer(&i))
    	// First, fill in the data portion of the interface.
    	switch {
    	case t.IfaceIndir():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top