Class: PacketGen::Types::Int24le

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

Overview

little endian 3-byte unsigned integer

Author:

  • Sylvain Daubert

Since:

  • 2.1.4

Instance Attribute Summary

Attributes inherited from Int

#default, #endian, #value, #width

Instance Method Summary collapse

Methods inherited from Int24

#read, #to_s

Methods inherited from Int

#format_inspect, #nbits, #read, #sz, #to_f, #to_i, #to_s

Methods included from Fieldable

#format_inspect, #read, #sz, #to_human, #to_s, #type_name

Constructor Details

#initialize(value = nil) ⇒ Int24le

Returns a new instance of Int24le.

Parameters:

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

Since:

  • 2.1.4



280
281
282
# File 'lib/packetgen/types/int.rb', line 280

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