Class: PacketGen::Types::Int8

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

Overview

One byte unsigned integer

Direct Known Subclasses

Header::DHCP::End

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



91
92
93
94
# File 'lib/packetgen/types/int.rb', line 91

def initialize(value=nil)
  super(value, nil, 1)
  @packstr = { nil => 'C' }
end