Class: Rubex::DataType::UInt64
- Inherits:
-
Object
- Object
- Rubex::DataType::UInt64
show all
- Includes:
- UIntHelpers
- Defined in:
- lib/rubex/data_type/u_int_64.rb
Instance Method Summary
collapse
Methods included from Helpers
#==, #base_type, #c_function_ptr?, #char_ptr?
Instance Method Details
#from_ruby_object(arg) ⇒ Object
13
14
15
|
# File 'lib/rubex/data_type/u_int_64.rb', line 13
def from_ruby_object(arg)
"(int64_t)NUM2UINT(#{arg})"
end
|
21
22
23
|
# File 'lib/rubex/data_type/u_int_64.rb', line 21
def p_formatter
'%lu'
end
|
#to_ruby_object(arg) ⇒ Object
9
10
11
|
# File 'lib/rubex/data_type/u_int_64.rb', line 9
def to_ruby_object(arg)
"ULONG2NUM(#{arg})"
end
|
#to_s ⇒ Object
5
6
7
|
# File 'lib/rubex/data_type/u_int_64.rb', line 5
def to_s
'uint64_t'
end
|
17
18
19
|
# File 'lib/rubex/data_type/u_int_64.rb', line 17
def uint64?
true
end
|