github.com/visualfc/xtype@v0.2.0/type.go (about) 1 package xtype 2 3 import "unsafe" 4 5 type tflag uint8 6 7 // sync reflect/type.go:/^type.rtype. 8 type _type struct { 9 size uintptr 10 ptrdata uintptr // size of memory prefix holding all pointers 11 hash uint32 12 tflag tflag 13 align uint8 14 fieldAlign uint8 15 kind uint8 16 // function for comparing objects of this type 17 // (ptr to object A, ptr to object B) -> ==? 18 equal func(unsafe.Pointer, unsafe.Pointer) bool 19 // gcdata stores the GC type data for the garbage collector. 20 // If the KindGCProg bit is set in kind, gcdata is a GC program. 21 // Otherwise it is a ptrmask bitmap. See mbitmap.go for details. 22 gcdata *byte 23 str nameOff 24 ptrToThis typeOff 25 } 26 27 type nameOff int32 28 type typeOff int32 29 type textOff int32