I am working with a C Framework in MacRuby which has a structure
int CPhidget_getSerialNumber(CPhidgetHandle phid,int * serialNumber)
You can see the full documentation here (if you are interested).
In MacRuby I have tried the following:
i = CPhidget_getSerialNumber(@encoder, nil)
The above gets me a number but not the serial number.
CPhidget_getSerialNumber(@encoder, i)
This gets me an error stating: expected instance of Pointer, got `0' (Fixnum) (TypeError) (which doesn't surprise me).
So my main question is: Is there an equivalent of a C Pointer in MacRuby?