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



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

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

.struct_nameObject



19
20
21
# File 'lib/rod/join_element.rb', line 19

def self.struct_name
  "_join_element"
end

.typedef_structObject



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

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