class PacketGen::Types::Int16
2-byte unsigned integer @author Sylvain Daubert
Public Class Methods
new(value=nil, endian=:big)
click to toggle source
@param [Integer,nil] value @param [:big, :little] endian
Calls superclass method
PacketGen::Types::Int::new
# File lib/packetgen/types/int.rb, line 125 def initialize(value=nil, endian=:big) super(value, endian, 2) @packstr = { big: 'n', little: 'v' } end