Class: PacketGen::Types::SInt16le

Inherits:
SInt16 show all
Defined in:
lib/packetgen/types/int.rb

Overview

little endian 2-byte signed integer

Author:

  • Sylvain Daubert

Since:

  • 2.8.2

Instance Attribute Summary

Attributes inherited from Int

#default, #endian, #value, #width

Instance Method Summary collapse

Methods inherited from Int

#read, #sz, #to_f, #to_i, #to_s

Constructor Details

#initialize(value = nil) ⇒ SInt16le

Returns a new instance of SInt16le.

Since:

  • 2.8.2



164
165
166
# File 'lib/packetgen/types/int.rb', line 164

def initialize(value=nil)
  super(value, :little)
end