Method: LibBin::Structure::Int64_BE.convert

Defined in:
lib/libbin/data_types.rb

.convert(input, output, input_big = LibBin::default_big?, output_big = !input_big, parent = nil, index = nil, length = nil) ⇒ Numeric+

Convert a field of class LibBin::Structure::Int64_BE by loading it from input and dumping it to output. Returns the loaded field.

Parameters:

  • input (IO)

    the stream to load the field from.

  • output (IO)

    the stream to dump the field to.

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

    the endianness of input

  • output_big (Boolean) (defaults to: !input_big)

    the endianness of output.

  • 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