fu-firmware-common

fu-firmware-common

Functions

Description

Functions

fu_firmware_strparse_uint4 ()

guint8
fu_firmware_strparse_uint4 (const gchar *data);

Parses a base 16 number from a string.

The string MUST be at least 1 byte long as this function cannot check the length of data . Checking the size must be done in the caller.

Parameters

data

a string

 

Returns

A parsed value, or 0 for error

Since: 1.3.1


fu_firmware_strparse_uint8 ()

guint8
fu_firmware_strparse_uint8 (const gchar *data);

Parses a base 16 number from a string.

The string MUST be at least 2 bytes long as this function cannot check the length of data . Checking the size must be done in the caller.

Parameters

data

a string

 

Returns

A parsed value, or 0 for error

Since: 1.3.1


fu_firmware_strparse_uint16 ()

guint16
fu_firmware_strparse_uint16 (const gchar *data);

Parses a base 16 number from a string.

The string MUST be at least 4 bytes long as this function cannot check the length of data . Checking the size must be done in the caller.

Parameters

data

a string

 

Returns

A parsed value, or 0 for error

Since: 1.3.1


fu_firmware_strparse_uint24 ()

guint32
fu_firmware_strparse_uint24 (const gchar *data);

Parses a base 16 number from a string.

The string MUST be at least 6 bytes long as this function cannot check the length of data . Checking the size must be done in the caller.

Parameters

data

a string

 

Returns

A parsed value, or 0 for error

Since: 1.3.1


fu_firmware_strparse_uint32 ()

guint32
fu_firmware_strparse_uint32 (const gchar *data);

Parses a base 16 number from a string.

The string MUST be at least 8 bytes long as this function cannot check the length of data . Checking the size must be done in the caller.

Parameters

data

a string

 

Returns

A parsed value, or 0 for error

Since: 1.3.1

Types and Values