class Ronin::Support::Binary::CTypes::Int16Type
Base class for all ‘Int16` types.
Public Class Methods
Source
# File lib/ronin/support/binary/ctypes/int16_type.rb, line 42 def initialize(**kwargs) super(signed: true, size: 2, **kwargs) end
Initializes the ‘Int16` type.
@param [Hash{Symbol => Object}] kwargs
Additional keyword arguments for {Type#initialize}.
@option kwargs [:little, :big, nil] :endian
The endian-ness of the integer type.
@option kwargs [String] :pack_string
The String for `Array#pack` or `String#unpack`.
Calls superclass method