Package: glib

Function g-bytes-data

Lambda List

g-bytes-data (bytes)

Arguments

bytes -- a g-bytes instance

Return Value

data -- a pointer to the byte data, or null-pointer
size -- an integer with the size of the byte data

Details

Get the byte data in the g-bytes instance. This function will always return the same pointer for a given g-bytes instance.

A null-pointer may be returned if the size value is 0. This is not guaranteed, as the g-bytes instance may represent an empty string with data not a null-pointer and the size value as 0. A null-pointer will not be returned if the size value is non-zero.
 

See also

2021-12-10