Class: PacketGen::Types::Int32le

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

Overview

little endian 4-byte unsigned integer

Author:

  • Sylvain Daubert

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

Returns a new instance of Int32le.

Parameters:

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


255
256
257
# File 'lib/packetgen/types/int.rb', line 255

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