Value.toStringAsBytes

glib.bytes.Bytes toStringAsBytes()

Convert value to a string and return the results as #GBytes. This is needed to handle strings with null characters.

Returns

a #GBytes with the result of the conversion.