# File 'lib/tigerbeetle/converters/uint_128.rb', line 7defself.native_typeTBClient::UInt128end
Instance Method Details
#from_native(ptr) ⇒ Object
11
12
13
14
# File 'lib/tigerbeetle/converters/uint_128.rb', line 11deffrom_native(ptr)c_value=TBClient::UInt128.new(ptr)c_value[:low]+(c_value[:high]<<64)end
#to_native(ptr, value) ⇒ Object
16
17
18
19
20
21
# File 'lib/tigerbeetle/converters/uint_128.rb', line 16defto_native(ptr,value)TBClient::UInt128.new(ptr).tapdo|result|result[:low]=value%2**64result[:high]=value>>64endend