module BinData::Framework
All methods provided by the framework are to be implemented or overridden by subclasses of BinData::Base.
Public Instance Methods
assign(val)
click to toggle source
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
bit_aligned?()
click to toggle source
Is this object aligned on non-byte boundaries?
# File lib/bindata/framework.rb, line 51 def bit_aligned? false end
clear?()
click to toggle source
Returns true if the object has not been changed since creation.
# File lib/bindata/framework.rb, line 23 def clear? raise NotImplementedError end
snapshot()
click to toggle source
Returns a snapshot of this data object.
# File lib/bindata/framework.rb, line 34 def snapshot raise NotImplementedError end
Protected Instance Methods
initialize_instance()
click to toggle source
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