Class
FwupdPluginInputStream
Instance methods
fu_input_stream_as_g_input_stream
Creates a GInputStream adapter that delegates all reads and seeks to stream.
Use this when a GLib or external API requires a GInputStream.
since: 2.1.7
fu_input_stream_chunkify
Split the stream into blocks and calls a function on each chunk.
since: 2.0.0
fu_input_stream_compute_crc16
Returns the cyclic redundancy check value for the given memory buffer.
since: 2.0.0
fu_input_stream_compute_crc32
Returns the cyclic redundancy check value for the given memory buffer.
since: 2.0.0
fu_input_stream_find
Find a memory buffer within an input stream, without loading the entire stream into a buffer.
since: 2.0.18
fu_input_stream_read
Tries to read count bytes from the stream into the buffer starting at buffer.
since: 2.1.7
fu_input_stream_read_all
Tries to read count bytes from the stream into the buffer starting at buffer.
Will block during this read.
since: 2.1.7
fu_input_stream_read_safe
Tries to read count bytes from the stream into the buffer starting at buf.
since: 2.0.0
fu_input_stream_read_u16
Read a value from a stream using a specified endian in a safe way.
since: 2.0.0
fu_input_stream_read_u24
Read a value from a stream using a specified endian in a safe way.
since: 2.0.0
fu_input_stream_read_u32
Read a value from a stream using a specified endian in a safe way.
since: 2.0.0
fu_input_stream_read_u64
Read a value from a stream using a specified endian in a safe way.
since: 2.0.0
fu_input_stream_read_u8
Read a value from a stream using a specified endian in a safe way.
since: 2.0.0
Methods inherited from GSeekable (5)
g_seekable_can_seek
Tests if the stream supports the GSeekableIface.
g_seekable_can_truncate
Tests if the length of the stream can be adjusted with g_seekable_truncate().
g_seekable_seek
Seeks in the stream by the given offset, modified by type.
g_seekable_tell
Tells the current position within the stream.
g_seekable_truncate
Sets the length of the stream to offset. If the stream was previously
larger than offset, the extra data is discarded. If the stream was
previously shorter than offset, it is extended with NUL (‘\0’) bytes.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct FwupdPluginInputStreamClass {
GObjectClass parent_class;
gssize (* read_fn) (
FuInputStream* stream,
void* buffer,
gsize count,
GCancellable* cancellable,
GError** error
);
goffset (* tell) (
FuInputStream* stream
);
gboolean (* can_seek) (
FuInputStream* stream
);
gboolean (* seek) (
FuInputStream* stream,
goffset offset,
GSeekType type,
GCancellable* cancellable,
GError** error
);
}
No description available.
Class members
parent_class: GObjectClassNo description available.
read_fn: gssize (* read_fn) ( FuInputStream* stream, void* buffer, gsize count, GCancellable* cancellable, GError** error )No description available.
tell: goffset (* tell) ( FuInputStream* stream )No description available.
can_seek: gboolean (* can_seek) ( FuInputStream* stream )No description available.
seek: gboolean (* seek) ( FuInputStream* stream, goffset offset, GSeekType type, GCancellable* cancellable, GError** error )No description available.