Class: BinStruct::Int16n
Overview
Native endian 2-byte unsigned integer
Instance Attribute Summary
Attributes inherited from Int
#default, #endian, #value, #width
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Int16n
constructor
A new instance of Int16n.
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 = {}) ⇒ Int16n
Returns a new instance of Int16n.
178 179 180 181 |
# File 'lib/bin_struct/int.rb', line 178 def initialize( = {}) opts = { value: [:value], endian: :native } super(opts) end |