Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SliceData (0.07 sec)

  1. src/bytes/bytes_test.go

    		}
    
    		if input != nil && clone == nil {
    			t.Errorf("Clone(%#v) return value should not be equal to nil slice.", input)
    		}
    
    		if cap(input) != 0 && unsafe.SliceData(input) == unsafe.SliceData(clone) {
    			t.Errorf("Clone(%q) return value should not reference inputs backing memory.", input)
    		}
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    		*ast.MapType, *ast.ChanType:
    
    		return true
    	}
    	return false
    }
    
    // isUnsafeData reports whether the expression is unsafe.StringData
    // or unsafe.SliceData. We can ignore these when checking for pointers
    // because they don't change whether or not their argument contains
    // any Go pointers. If onlyStringData is true we only check for StringData.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top