GLib.Array.new
Description: Reference for GLib.Array.new

### Function

# GLib Arraynew

#### Declaration [src]

    GArray*
    g_array_new (
      gboolean zero_terminated,
      gboolean clear_,
      guint element_size
    )

#### Description [src]

Creates a new `GArray` with a reference count of 1.

This function is not directly available to language bindings.

#### Parameters

`zero_terminated`

  Type: `gboolean`

  If true, the array should have an extra element at the end which is set to 0.

`clear_`

  Type: `gboolean`

  If true, `GArray` elements should be automatically cleared to 0 when they are allocated.

`element_size`

  Type: `guint`

  The size of each element in bytes.

#### Return value

Type: An array of `gpointer`

The new `GArray`.

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