Class: StructFu::Int16le
- Defined in:
- lib/packetfu/structfu.rb
Overview
Int16le is a two byte value in little-endian format. The endianness cannot be altered.
Instance Attribute Summary
Attributes inherited from Int
#default, #endian, #value, #width
Instance Method Summary collapse
-
#initialize(v = nil, e = :little) ⇒ Int16le
constructor
A new instance of Int16le.
Methods inherited from Int16
Methods inherited from Int
Methods inherited from Struct
Constructor Details
#initialize(v = nil, e = :little) ⇒ Int16le
Returns a new instance of Int16le.
134 135 136 137 |
# File 'lib/packetfu/structfu.rb', line 134 def initialize(v=nil, e=:little) super(v,e) @packstr = (self.e == :big) ? "n" : "v" end |