Class: Rod::JoinElement

Inherits:
AbstractModel show all
Defined in:
lib/rod/join_element.rb

Direct Known Subclasses

PolymorphicJoinElement

Class Method Summary collapse

Methods inherited from AbstractModel

build_structure, cache, compatible?, difference, fields, indexed_properties, metadata, path_for_data, properties

Class Method Details

.layoutObject



15
16
17
18
19
# File 'lib/rod/join_element.rb', line 15

def self.layout
  '  printf("  offset: %lu, index: %lu\n",' +
    '(unsigned long)sizeof(unsigned long), ' +
    '(unsigned long)sizeof(unsigned long));' + "\n"
end

.struct_nameObject



21
22
23
# File 'lib/rod/join_element.rb', line 21

def self.struct_name
  "_join_element"
end

.typedef_structObject



5
6
7
8
9
10
11
12
13
# File 'lib/rod/join_element.rb', line 5

def self.typedef_struct
  str = <<-END
  |typedef struct {
  |  unsigned long offset;
  |  unsigned long index;
  |} _join_element;
  END
  str.margin
end