func generateID() unsafe.Pointer { idmux.Lock() defer idmux.Unlock() p := C.cgo_id_malloc(C.uint64_t(nextID)) nextID++ return unsafe.Pointer(p) }
func (s subtypeID) c() unsafe.Pointer { return C.cgo_id_malloc(C.uint64_t(s)) }