method
wrap_result
v1_9_3_125 -
Show latest stable
- Class:
DL::Function
wrap_result(r)public
No documentation available.
# File ext/dl/lib/dl/func.rb, line 65
def wrap_result(r)
case @cfunc.ctype
when TYPE_VOIDP
r = CPtr.new(r)
else
if( @unsigned )
r = unsigned_value(r, @cfunc.ctype)
end
end
r
end