Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for unsafe_New (0.11 sec)

  1. src/reflect/value.go

    	typ := t.common()
    	ptr := unsafe_New(typ)
    	*(*float32)(ptr) = v
    	return Value{typ, ptr, f | flagIndir | flag(typ.Kind())}
    }
    
    // makeComplex returns a Value of type t equal to v (possibly truncated to complex64),
    // where t is a complex64 or complex128 type.
    func makeComplex(f flag, v complex128, t Type) Value {
    	typ := t.common()
    	ptr := unsafe_New(typ)
    	switch typ.Size() {
    	case 8:
    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