All methods provided by the framework are to be implemented or overridden by subclasses of BinData::Base.
Assigns the value of val
to this data object. Note that
val
must always be deep copied to ensure no aliasing problems
can occur.
# File lib/bindata/framework.rb, line 29 def assign(val) raise NotImplementedError end
Is this object aligned on non-byte boundaries?
# File lib/bindata/framework.rb, line 51 def bit_aligned? false end
Returns true if the object has not been changed since creation.
# File lib/bindata/framework.rb, line 23 def clear? raise NotImplementedError end
Returns a snapshot of this data object.
# File lib/bindata/framework.rb, line 34 def snapshot raise NotImplementedError end
Initializes the state of the object. All instance variables that are used by the object must be initialized here.
# File lib/bindata/framework.rb, line 10 def initialize_instance end