Method: BinStruct::SInt16le#initialize

Defined in:
lib/bin_struct/int.rb

#initialize(options = {}) ⇒ SInt16le

Returns a new instance of SInt16le.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :value (Integer, nil)

Author:

  • LemonTree55



213
214
215
216
# File 'lib/bin_struct/int.rb', line 213

def initialize(options = {})
  opts = { value: options[:value], endian: :little }
  super(opts)
end