lib/xgb/utils.rb in xgb-0.1.2 vs lib/xgb/utils.rb in xgb-0.1.3

- old
+ new

@@ -7,7 +7,12 @@ # make friendly message = FFI.XGBGetLastError.split("\n").first.split(/:\d+: /, 2).last raise Xgb::Error, message end end + + # read_uint64 not available on JRuby + def read_uint64(ptr) + ptr.read_array_of_uint64(1).first + end end end