Class: RMasm::DataType
Overview
General data class for Primitives and Struct
Class Method Summary collapse
- .read(io) ⇒ Object
-
.sizeof ⇒ Object
Return the sizeof of this datatype.
-
.valid?(arg) ⇒ Boolean
Validate the given value for this datatype.
- .write(io, value) ⇒ Object
Class Method Details
.read(io) ⇒ Object
36 37 38 |
# File 'lib/rmasm/data_type.rb', line 36 def self.read(io) raise NotImplementedError.new end |
.sizeof ⇒ Object
Return the sizeof of this datatype
27 28 29 |
# File 'lib/rmasm/data_type.rb', line 27 def self.sizeof raise NotImplementedError.new end |
.valid?(arg) ⇒ Boolean
Validate the given value for this datatype
32 33 34 |
# File 'lib/rmasm/data_type.rb', line 32 def self.valid?(arg) true end |
.write(io, value) ⇒ Object
40 41 42 |
# File 'lib/rmasm/data_type.rb', line 40 def self.write(io, value) raise NotImplementedError.new end |