Module: Xbd::Asi::IO
Overview
********************************* Enable ASI reading and writing in standard objects. *********************************
Instance Method Summary collapse
- #read_asi(index = 0) ⇒ Object
-
#read_asi_string(index = 0) ⇒ Object
read an asi and then read the next N bytes, where N is the asi value index’s value is ignored.
Instance Method Details
#read_asi(index = 0) ⇒ Object
110 111 112 |
# File 'lib/xbd/asi.rb', line 110 def read_asi(index=0) Asi.read_asi_from_file(self) end |
#read_asi_string(index = 0) ⇒ Object
read an asi and then read the next N bytes, where N is the asi value index’s value is ignored
116 117 118 |
# File 'lib/xbd/asi.rb', line 116 def read_asi_string(index=0) read(Asi.read_asi_from_file(self)) end |