Method
FwupdPluginDeviceget_contents_bytes
Declaration [src]
GBytes*
fu_device_get_contents_bytes (
FuDevice* self,
const gchar* filename,
gsize count,
FuProgress* progress,
GError** error
)
Parameters
filename |
const gchar* |
Full path to a file. |
|
| The data is owned by the caller of the function. | |
| The value is a NUL terminated UTF-8 string. | |
count |
gsize |
Maximum number of bytes to read. |
|
progress |
FuProgress |
Optional |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
error |
GError ** |
The return location for a GError*, or NULL. |
Return value
| Returns: | GBytes |
A |
|
| The caller of the method takes ownership of the data, and is responsible for freeing it. |