Class

FwupdPluginCompositeInputStream

Description [src]

final class FwupdPlugin.CompositeInputStream : FwupdPlugin.InputStream
  implements Fwupd.Codec, Gio.Seekable {
  /* No available fields */
}

A input stream that is made up of other partial streams, e.g.

  off    sz     off  sz

[xxxxxxxxxxxx] [yyyyyyyy] | 0x6 | |0x4| \ \ / / \ \ / / \ | | | | | [xxxxxxyyyyyy]

xxx offset: 2, sz: 6 yyy offset: 0, sz: 4.

Hierarchy

hierarchy this FuCompositeInputStream implements_0 FwupdCodec this--implements_0 implements_1 GSeekable this--implements_1 ancestor_0 FuInputStream ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Implements

Constructors

fu_composite_input_stream_new

Creates a composite input stream.

since: 2.0.0

Instance methods

fu_composite_input_stream_add_bytes

Adds a bytes object.

since: 2.1.2

fu_composite_input_stream_add_partial_stream

Adds a partial stream object.

since: 2.1.2

fu_composite_input_stream_add_stream

Adds a input stream object, which has to be seekable.

since: 2.0.0

Methods inherited from FuInputStream (21)
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 FwupdCodec (8)
fwupd_codec_add_string

Converts an object that implements FwupdCodec to a debug string, appending it to str.

fwupd_codec_from_json

Converts an object that implements FwupdCodec from a JSON object.

fwupd_codec_from_json_string

Converts an object that implements FwupdCodec from a JSON string.

fwupd_codec_from_variant

Converts an object that implements FwupdCodec from a GVariant value.

fwupd_codec_to_json

Converts an object that implements FwupdCodec to a JSON builder object.

fwupd_codec_to_json_string

Converts an object that implements FwupdCodec to a JSON string.

fwupd_codec_to_string

Converts an object that implements FwupdCodec to a debug string.

fwupd_codec_to_variant

Converts an object that implements FwupdCodec to a GVariant.

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 FwupdPluginCompositeInputStreamClass {
  FuInputStreamClass parent_class;
  
}

No description available.

Class members
parent_class: FuInputStreamClass

No description available.