Class: PacketGen::Types::SInt32

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

Overview

4-byte unsigned integer

Author:

  • Sylvain Daubert

Since:

  • 2.8.2

Direct Known Subclasses

SInt32be, SInt32le

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, endian = :big) ⇒ SInt32

Returns a new instance of SInt32.

Since:

  • 2.8.2



262
263
264
265
# File 'lib/packetgen/types/int.rb', line 262

def initialize(value=nil, endian=:big)
  super
  @packstr = { big: 'l>', little: 'l<' }
end