Class: Rubex::DataType::ULLInt

Inherits:
Object
  • Object
show all
Includes:
UIntHelpers
Defined in:
lib/rubex/data_type/u_l_l_int.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_l_l_int.rb', line 13

def from_ruby_object(arg)
  "NUM2ULL(#{arg})"
end

#p_formatterObject



21
22
23
# File 'lib/rubex/data_type/u_l_l_int.rb', line 21

def p_formatter
  '%llu'
end

#to_ruby_object(arg) ⇒ Object



9
10
11
# File 'lib/rubex/data_type/u_l_l_int.rb', line 9

def to_ruby_object(arg)
  "ULL2NUM(#{arg})"
end

#to_sObject



5
6
7
# File 'lib/rubex/data_type/u_l_l_int.rb', line 5

def to_s
  'unsigned long long int'
end

#ullint?Boolean

Returns:



17
18
19
# File 'lib/rubex/data_type/u_l_l_int.rb', line 17

def ullint?
  true
end