Method: LibBin::Structure::Int64_BE.shape

Defined in:
lib/libbin/data_types.rb

.shape(value = nil, offset = 0, parent = nil, index = nil, kind = DataShape, length = nil) ⇒ kind

Returns the shape of a field of type LibBin::Structure::Int64_BE

Parameters:

  • value (Object) (defaults to: nil)

    ignored.

  • offset (Integer) (defaults to: 0)

    start of the shape.

  • parent (Structure) (defaults to: nil)

    ignored.

  • index (Integer) (defaults to: nil)

    ignored.

  • kind (Class) (defaults to: DataShape)

    shape class. Will be instantiated through new with the offset and offset + sizeof(int64_t) * length - 1.

  • length (Integer) (defaults to: nil)

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

Returns:

  • (kind)

    a new instance of kind



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