Class: BinStruct::SInt16le
- Defined in:
- lib/bin_struct/int.rb
Overview
Little endian 2-byte signed integer
Instance Attribute Summary
Attributes inherited from Int
#default, #endian, #value, #width
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SInt16le
constructor
A new instance of SInt16le.
Methods inherited from Int
#format_inspect, #from_human, #nbits, #read, #sz, #to_f, #to_i, #to_s
Methods included from Structable
#format_inspect, #read, #sz, #to_human, #to_s, #type_name
Constructor Details
#initialize(options = {}) ⇒ SInt16le
Returns a new instance of SInt16le.
213 214 215 216 |
# File 'lib/bin_struct/int.rb', line 213 def initialize( = {}) opts = { value: [:value], endian: :little } super(opts) end |