Bytes.getData

ubyte[] getData()

Get the byte data in the #GBytes. This data should not be modified.

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

null may be returned if size is 0. This is not guaranteed, as the #GBytes may represent an empty string with data non-null and size as 0. null will not be returned if size is non-zero.

Returns

a pointer to the byte data, or null