You can wrap your own type using a class NSValue. The error is that you did not provide an object reference for the method.
Try using the class method NSValue +(NSValue *)valueWithBytes:(const void *)value objCType:(const char *)type;. Alternatively, you can get the value with -(void)getValue:(void *)buffer;.
user756245
source
share