Class: PacketGen::Types::Int16le

Inherits:
Int16
  • Object
show all
Defined in:
lib/packetgen/types/int.rb

Overview

little endian 2-byte unsigned integer

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) ⇒ Int16le

Returns a new instance of Int16le.

Parameters:

  • value (Integer, nil) (defaults to: nil)


132
133
134
# File 'lib/packetgen/types/int.rb', line 132

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