Function

FwupdPlugincommon_bytes_pad

since: 1.3.1

Declaration [src]

GBytes*
fu_common_bytes_pad (
  GBytes* bytes,
  gsize sz
)

Description [src]

Pads a GBytes to a minimum sz with 0xff.

Available since: 1.3.1

Parameters

bytes

Type: GBytes

Data blob.

The data is owned by the caller of the function.
sz

Type: gsize

The desired size in bytes.

Return value

Type: GBytes

A data blob.

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