Function
FwupdPluginSecureBytesnew
since: 2.1.8
Declaration [src]
FuSecureBytes*
fu_secure_bytes_new (
guint8* buf,
gsize bufsz,
GDestroyNotify destroy_fn
)
Description [src]
Creates a secure byte array that is cleared when deallocated.
After this call, data belongs to the FuSecureBytes and may no longer be modified by the caller.
Available since: 2.1.8
This function is not directly available to language bindings.
Parameters
buf-
Type:
guint8*Initial data that is moved into
self, typically stolen.The argument can be NULL.The called function takes ownership of the data, and is responsible for freeing it. bufsz-
Type:
gsizeSize of
buf. destroy_fn-
Type:
GDestroyNotifyFunction to call on
bufwhen theFuSecureBytesis destroyed.
Return value
Type: FuSecureBytes
A FuSecureBytes.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |