GLib.Array.ref
Description: Reference for GLib.Array.ref

### Function

# GLib Arrayref

since: 2.22

#### Declaration [src]

    GArray*
    g_array_ref (
      GArray* array
    )

#### Description [src]

Atomically increments the reference count of `array` by one. This function is thread-safe and may be called from any thread.

Available since: 2.22

This function is not directly available to language bindings.

#### Parameters

`array`

  Type: An array of `gpointer`

  An array.

  The data is owned by the caller of the function.

#### Return value

Type: An array of `gpointer`

The passed in `GArray`.

The caller of the function takes ownership of the data, and is responsible for freeing it.