Top | ![]() |
![]() |
![]() |
![]() |
guint8 | fu_firmware_strparse_uint4 () |
guint8 | fu_firmware_strparse_uint8 () |
guint16 | fu_firmware_strparse_uint16 () |
guint32 | fu_firmware_strparse_uint24 () |
guint32 | fu_firmware_strparse_uint32 () |
gboolean | fu_firmware_strparse_uint4_safe () |
gboolean | fu_firmware_strparse_uint8_safe () |
gboolean | fu_firmware_strparse_uint16_safe () |
gboolean | fu_firmware_strparse_uint24_safe () |
gboolean | fu_firmware_strparse_uint32_safe () |
guint8
fu_firmware_strparse_uint4 (const gchar *data
);
fu_firmware_strparse_uint4
is deprecated and should not be used in newly-written code.
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.
Since: 1.3.1
guint8
fu_firmware_strparse_uint8 (const gchar *data
);
fu_firmware_strparse_uint8
is deprecated and should not be used in newly-written code.
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.
Since: 1.3.1
guint16
fu_firmware_strparse_uint16 (const gchar *data
);
fu_firmware_strparse_uint16
is deprecated and should not be used in newly-written code.
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.
Since: 1.3.1
guint32
fu_firmware_strparse_uint24 (const gchar *data
);
fu_firmware_strparse_uint24
is deprecated and should not be used in newly-written code.
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.
Since: 1.3.1
guint32
fu_firmware_strparse_uint32 (const gchar *data
);
fu_firmware_strparse_uint32
is deprecated and should not be used in newly-written code.
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.
Since: 1.3.1
gboolean fu_firmware_strparse_uint4_safe (const gchar *data
,gsize datasz
,gsize offset
,guint8 *value
,GError **error
);
Parses a base 16 number from a string of 1 character in length.
The returned value
will range from from 0 to 0xf.
data |
destination buffer |
|
datasz |
size of |
|
offset |
offset in chars into |
|
value |
parsed value. |
[out][nullable] |
error |
A GError or |
Since: 1.5.6
gboolean fu_firmware_strparse_uint8_safe (const gchar *data
,gsize datasz
,gsize offset
,guint8 *value
,GError **error
);
Parses a base 16 number from a string of 2 characters in length.
The returned value
will range from from 0 to 0xff.
data |
destination buffer |
|
datasz |
size of |
|
offset |
offset in chars into |
|
value |
parsed value. |
[out][nullable] |
error |
A GError or |
Since: 1.5.6
gboolean fu_firmware_strparse_uint16_safe (const gchar *data
,gsize datasz
,gsize offset
,guint16 *value
,GError **error
);
Parses a base 16 number from a string of 4 characters in length.
The returned value
will range from from 0 to 0xffff.
data |
destination buffer |
|
datasz |
size of |
|
offset |
offset in chars into |
|
value |
parsed value. |
[out][nullable] |
error |
A GError or |
Since: 1.5.6
gboolean fu_firmware_strparse_uint24_safe (const gchar *data
,gsize datasz
,gsize offset
,guint32 *value
,GError **error
);
Parses a base 16 number from a string of 6 characters in length.
The returned value
will range from from 0 to 0xffffff.
data |
destination buffer |
|
datasz |
size of |
|
offset |
offset in chars into |
|
value |
parsed value. |
[out][nullable] |
error |
A GError or |
Since: 1.5.6
gboolean fu_firmware_strparse_uint32_safe (const gchar *data
,gsize datasz
,gsize offset
,guint32 *value
,GError **error
);
Parses a base 16 number from a string of 8 characters in length.
The returned value
will range from from 0 to 0xffffffff.
data |
destination buffer |
|
datasz |
size of |
|
offset |
offset in chars into |
|
value |
parsed value. |
[out][nullable] |
error |
A GError or |
Since: 1.5.6