Class: Rod::PolymorphicJoinElement
Class Method Summary
collapse
build_structure, cache, compatible?, difference, fields, indexed_properties, metadata, path_for_data, properties
Class Method Details
.layout ⇒ Object
39
40
41
42
43
|
# File 'lib/rod/join_element.rb', line 39
def self.layout
' printf(" offset: %lu, class: %lu\n",' +
'(unsigned long)sizeof(unsigned long), ' +
'(unsigned long)sizeof(unsigned long));' + "\n"
end
|
.struct_name ⇒ Object
35
36
37
|
# File 'lib/rod/join_element.rb', line 35
def self.struct_name
"_polymorphic_join_element"
end
|
.typedef_struct ⇒ Object
25
26
27
28
29
30
31
32
33
|
# File 'lib/rod/join_element.rb', line 25
def self.typedef_struct
str = " |typedef struct {\n | unsigned long offset;\n | unsigned long class;\n |} _polymorphic_join_element;\n END\n str.margin\nend\n"
|