(objectID int32)
| 12 | import "C" |
| 13 | |
| 14 | func classObjectOpaque(objectID int32) unsafe.Pointer { |
| 15 | if objectID >= 0 { |
| 16 | return nil |
| 17 | } |
| 18 | return C.IntToOpaque(C.int32_t(objectID)) |
| 19 | } |
| 20 | |
| 21 | func resolveClassObjectFromOpaque(ctx *Context, opaque unsafe.Pointer) (*Context, int32, bool) { |
| 22 | if ctx == nil || ctx.runtime == nil || opaque == nil { |
no outgoing calls