Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/reflect/value.go

    // TODO: undo when the inliner is no longer bottom-up only.
    //
    //go:noinline
    func (f flag) panicNotMap() {
    	f.mustBe(Map)
    }
    
    // copyVal returns a Value containing the map key or value at ptr,
    // allocating a new variable as needed.
    func copyVal(typ *abi.Type, fl flag, ptr unsafe.Pointer) Value {
    	if typ.IfaceIndir() {
    		// Copy result so future changes to the map
    		// won't change the underlying value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top