Class: RMasm::BinIOMode

Inherits:
Stacker show all
Defined in:
lib/rmasm/binio.rb

Overview

Default stacker class for BinIOMode. The default mode for binio is little endian.

Constant Summary collapse

VALUE =
:little

Instance Attribute Summary

Attributes inherited from Stacker

#stack

Instance Method Summary collapse

Methods inherited from Stacker

#pop, #push, #value, #value=

Constructor Details

#initialize(*args) ⇒ BinIOMode

Initialize alignment. The Align can be intialized with a stack : Align.new(1,2,4,8)



77
78
79
# File 'lib/rmasm/binio.rb', line 77

def initialize(*args)
  super VALUE, *args
end

Instance Method Details

#to_sObject

Friendly to string



82
83
84
# File 'lib/rmasm/binio.rb', line 82

def to_s()
  "BinIO mode, value = #{value}, stack = [#{stack * ' , '})]"
end