Function
FwupdPlugininput_stream_read_byte_array
Declaration [src]
GByteArray*
fu_input_stream_read_byte_array (
GInputStream* stream,
gsize offset,
gsize count,
FuProgress* progress,
GError** error
)
Description [src]
Read a byte array from a stream in a safe way.
NOTE: The returned buffer may be smaller than count!
| Available since: | 2.0.0 |
Parameters
stream |
GInputStream |
A |
|
| The data is owned by the caller of the function. | |
offset |
gsize |
Offset in bytes into |
|
count |
gsize |
Maximum number of bytes to read. |
|
progress |
FuProgress |
An 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. |