class PacketGen::Types::SInt16
2-byte signed integer @author Sylvain Daubert @since 2.8.2
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::Int16::new
# File lib/packetgen/types/int.rb, line 155 def initialize(value=nil, endian=:big) super @packstr = { big: 's>', little: 's<' } end