Class

FwupdPluginMemoryInputStream

Description [src]

final class FwupdPlugin.MemoryInputStream : FwupdPlugin.InputStream
  implements Gio.Seekable {
  /* No available fields */
}

A memory-backed input stream that wraps a GBytes, the fwupd equivalent to GMemoryInputStream. This implementation is a drop-in replacement for GMemoryInputStream for the needs within fwupd.

Hierarchy

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

Implements

Constructors

fu_memory_input_stream_new

Creates a new empty memory-backed input stream.

since: 2.1.7

fu_memory_input_stream_new_from_bytes

Creates a new memory-backed input stream from bytes.

since: 2.1.7

fu_memory_input_stream_new_from_data

Creates a new memory-backed input stream from data.

since: 2.1.7

Instance methods

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

No description available.

Class members
parent_class: FuInputStreamClass

No description available.