Gck.Attribute.prototype.get_data

function get_data(): [return_value: ByteArray, length: Number(gsize)] {
    // Gjs wrapper for gck_attribute_get_data()
}
  

Get the raw value in the attribute.

This is useful from scripting languages. C callers will generally access the Gck.Attribute struct directly.

This function will null if the attribute contains empty or invalid data. The returned data must not be modified and is only valid as long as this @attribute.

return_value

the value data or null

length

the length of the returned data