Method: LibBin::Structure::Int64_BE.load

Defined in:
lib/libbin/data_types.rb

.load(input, input_big = LibBin::default_big?, parent = nil, index = nil, length = nil) ⇒ Numeric+

Load a field of type LibBin::Structure::Int64_BE from input, and return it.

Parameters:

  • input (IO)

    the stream to load the field from.

  • input_big (Boolean) (defaults to: LibBin::default_big?)

    the endianness of input

  • parent (Structure) (defaults to: nil)

    ignored.

  • index (Integer) (defaults to: nil)

    ignored.

  • length (Integer) (defaults to: nil)

    if given the length of the vector. Else the length is considered to be 1.

Returns:

  • (Numeric, Array<Numeric>)

    the Ruby representation of the type, or the Array representation of the vector if length was specified



# File 'lib/libbin/data_types.rb', line 3