Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfcValuePtr ¶
IfcValuePtr extracts the underlying values pointer from an empty interface{} value. Note: this might beome more unsafe in future go-versions, if primitive values < pointer size will be stored by value in the `interface{}` type.
func ReflValuePtr ¶
ReflValuePtr extracts the pointer value from a reflect.Value instance. With reflect.Value basically being similar to `interface{}` augmented with additional flags to execute checks, we map the value into an empty interface value (no methods) and extract the actual values pointer. Note: this might beome more unsafe in future go-versions, if primitive values < pointer size will be stored by value in the `interface{}` type.
func UnsafeFnPtr ¶
Returns a newly (allocated on heap) function pointer. The unsafe.Pointer returned can be used to cast a function type into a function with other(compatible) type (e.g. passing pointers only).
Types ¶
This section is empty.