Class
FwupdPluginCompressorStream
Description [src]
final class FwupdPlugin.CompressorStream : FwupdPlugin.StreamInputStream
implements Gio.Seekable {
/* No available fields */
}
An input stream that wraps a zlib compressor or decompressor around a
source FuInputStream. Use fu_compressor_stream_new_compress() to create
a stream that compresses data on read, or fu_compressor_stream_new_decompress()
to create a stream that decompresses data on read.
Constructors
fu_compressor_stream_new_compress
Creates a new stream that compresses data from source on read.
since: 2.0.7
fu_compressor_stream_new_decompress
Creates a new stream that decompresses data from source on read.
since: 2.0.7
Instance methods
Methods inherited from FuStreamInputStream (1)
fu_stream_input_stream_set_base_stream
Sets the underlying GInputStream that this stream wraps.
The base_stream is reffed.
This is intended for use by subclasses during construction.
since: 2.0.7
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 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.