Function
FwupdPluginbytes_get_contents_stream_full
Declaration [src]
GBytes*
fu_bytes_get_contents_stream_full (
GInputStream* stream,
gsize offset,
gsize count,
GError** error
)
Description [src]
Reads a blob from a specific input stream.
NOTE: if the input stream can provide more data than offset+count it will be truncated.
| Available since: | 1.9.1 |
Parameters
stream |
GInputStream |
Input stream. |
|
| The data is owned by the caller of the function. | |
offset |
gsize |
The offset to read from. |
|
count |
gsize |
The maximum number of bytes to read up to. |
|
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. |