Class: Gst::ValueArray

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

A fundamental type that describes an ordered list of #GValue

Class Method Summary collapse

Class Method Details

.append_and_take_value(value, append_value) ⇒ nil

Appends append_value to the GstValueArray in value.

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_ARRAY

  • append_value (GObject::Value)

    the value to append

Returns:

  • (nil)

.append_value(value, append_value) ⇒ nil

Appends append_value to the GstValueArray in value.

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_ARRAY

  • append_value (GObject::Value)

    the value to append

Returns:

  • (nil)

.get_size(value) ⇒ Integer

Gets the number of values contained in value.

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_ARRAY

Returns:

  • (Integer)

    the number of values

.get_value(value, index) ⇒ GObject::Value

Gets the value that is a member of the array contained in value and has the index index.

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_ARRAY

  • index (Integer)

    index of value to get from the array

Returns:

  • (GObject::Value)

    the value at the given index

.init(value, prealloc) ⇒ GObject::Value

Initializes and pre-allocates a #GValue of type #GST_TYPE_ARRAY.

Parameters:

  • value (GObject::Value)

    A zero-filled (uninitialized) #GValue structure

  • prealloc (Integer)

    The number of entries to pre-allocate in the array

Returns:

  • (GObject::Value)

    The #GValue structure that has been passed in

.prepend_value(value, prepend_value) ⇒ nil

Prepends prepend_value to the GstValueArray in value.

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_ARRAY

  • prepend_value (GObject::Value)

    the value to prepend

Returns:

  • (nil)