Constructor

FwupdPluginChunkbytes_new

since: 1.5.6

Declaration [src]

FuChunk*
fu_chunk_bytes_new (
  GBytes* bytes
)

Description [src]

Creates a new packet of data.

Available since: 1.5.6

Parameters

bytes

Type: GBytes

Data.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: FuChunk

A FuChunk.

The caller of the function takes ownership of the data, and is responsible for freeing it.