Source File
unsafe_ptr.go
Belonging Package
github.com/modern-go/reflect2
package reflect2import ()type UnsafePtrType struct {unsafeType}func newUnsafePtrType( *frozenConfig, reflect.Type) *UnsafePtrType {return &UnsafePtrType{unsafeType: *newUnsafeType(, ),}}func ( *UnsafePtrType) ( interface{}) bool {if == nil {return true}:= unpackEFace()assertType("Type.IsNil argument 1", .ptrRType, .rtype)return .UnsafeIsNil(.data)}func ( *UnsafePtrType) ( unsafe.Pointer) bool {if == nil {return true}return *(*unsafe.Pointer)() == nil}func ( *UnsafePtrType) () bool {return true}func ( *UnsafePtrType) ( interface{}) interface{} {:= unpackEFace()assertType("Type.Indirect argument 1", .ptrRType, .rtype)return .UnsafeIndirect(.data)}func ( *UnsafePtrType) ( unsafe.Pointer) interface{} {return packEFace(.rtype, *(*unsafe.Pointer)())}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |