get_data


Description:

[ CCode ( array_length_type = "gsize" ) ]
public unowned uint8[]? get_data ()

Get the byte data in the [struct@GLib.

Bytes].

This data should not be modified.

This function will always return the same pointer for a given `GBytes`.

`NULL` may be returned if return.length is 0. This is not guaranteed, as the `GBytes` may represent an empty string with data non-`NULL` and return.length as 0. `NULL` will not be returned if return.length is non-zero.

Parameters:

this

a [struct@GLib.Bytes]

size

location to return size of byte data

Returns:

a pointer to the byte data