()
| 62 | } |
| 63 | |
| 64 | func (c *Component) ptr() *C.wasmtime_component_t { |
| 65 | ret := c._ptr |
| 66 | if ret == nil { |
| 67 | panic("object has been closed already") |
| 68 | } |
| 69 | maybeGC() |
| 70 | return ret |
| 71 | } |
| 72 | |
| 73 | // Serialize encodes this component as a sequence of bytes which can later be |
| 74 | // passed to [NewComponentDeserialize] to recover the same component without |
no test coverage detected