Function
FwupdPluginbytes_get_contents_fd
Declaration [src]
GBytes*
fu_bytes_get_contents_fd (
gint fd,
gsize count,
GError** error
)
Description [src]
Reads a blob from a specific file descriptor.
Note: this will close the fd when done.
Available since: | 1.8.2 |
Parameters
fd |
gint |
A file descriptor. |
|
count |
gsize |
The maximum number of bytes to read. |
|
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | GBytes |
A |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |