Function

GLibByteArrayremove_range

Declaration

GByteArray*
g_byte_array_remove_range (
  GByteArray* array,
  guint index_,
  guint length
)

Description

Removes the given number of bytes starting at the given index from a GByteArray. The following elements are moved to close the gap.

Available since:2.4

Parameters

array An array of guint8
 

A GByteArray.

 The data is owned by the caller of the function.
index_ guint
 

The index of the first byte to remove.

length guint
 

The number of bytes to remove.

Return value

Returns: An array of guint8
 

The GByteArray.

 The data is owned by the called function.