| Module | Kernel |
| In: |
lib/sqlite3/driver/dl/driver.rb
|
Allows arbitrary objects to be passed as a pointer to functions. (Probably not very GC safe, but by encapsulating it like this we can change the implementation later.)
# File lib/sqlite3/driver/dl/driver.rb, line 43
43: def to_ptr
44: ptr = DL.malloc(DL.sizeof("L"))
45: ptr.set_object self
46: ptr
47: end