Class: Gogyou::Model::Union
- Inherits:
-
Gogyou::Model
- Object
- Gogyou::Model
- Gogyou::Model::Union
- Defined in:
- lib/gogyou/model.rb
Defined Under Namespace
Classes: Creator
Constant Summary
Constants inherited from Gogyou::Model
BasicStruct, FIELDNAME_PATTERN, TYPEMAP
Instance Method Summary collapse
Methods inherited from Gogyou::Model
check_typeinfo, define_container, #extensible?, #initialize, #pretty_print, struct, #to_s, typedef, union
Constructor Details
This class inherits a constructor from Gogyou::Model
Instance Method Details
#aref(buffer, offset) ⇒ Object
476 477 478 479 480 481 |
# File 'lib/gogyou/model.rb', line 476 def aref(buffer, offset) v = Accessor::TemporaryUnion.new(buffer, offset, self) v.infect_from(self, buffer) unless v.frozen? v.freeze if frozen? || buffer.frozen? v end |
#aset(buffer, offset, value) ⇒ Object
472 473 474 |
# File 'lib/gogyou/model.rb', line 472 def aset(buffer, offset, value) raise NotImplementedError end |