Class

FwupdPluginInputStream

Description

class FwupdPlugin.InputStream : GObject.Object
  implements Gio.Seekable {
  /* No available fields */
}

No description available.

Hierarchy

hierarchy this FuInputStream implements_0 GSeekable this--implements_0 ancestor_0 GObject ancestor_0--this

Ancestors

Implements

Functions

fu_input_stream_from_path

Opens the file as n input stream.

since: 2.0.0

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_checksum

Generates the checksum of the entire stream.

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_compute_sum16

Returns the arithmetic sum of all bytes in the stream.

since: 2.0.0

fu_input_stream_compute_sum32

Returns the arithmetic sum of all bytes in the stream.

since: 2.0.1

fu_input_stream_compute_sum8

Returns the arithmetic sum of all bytes in the stream.

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_byte_array

Read a byte array from a stream in a safe way.

since: 2.0.0

fu_input_stream_read_bytes

Read a GBytes from a stream in a safe way.

since: 2.0.0

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_string

Read a UTF-8 string from a stream in a safe way.

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

fu_input_stream_size

Reads the total possible of the stream.

since: 2.0.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

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: GObjectClass

No 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.

Virtual methods

FwupdPlugin.InputStreamClass.can_seek
No description available.

FwupdPlugin.InputStreamClass.read_fn
No description available.

FwupdPlugin.InputStreamClass.seek
No description available.

FwupdPlugin.InputStreamClass.tell
No description available.