Function
Qmimessage_tlv_read_guint8
since: 1.12
Declaration [src]
gboolean
qmi_message_tlv_read_guint8 (
QmiMessage* self,
gsize tlv_offset,
gsize* offset,
guint8* out,
GError** error
)
Description [src]
Reads an unsigned byte from the TLV.
offset
needs to point to a valid gsize
specifying the index to start
reading from within the TLV value (0 for the first item). If the variable
is successfully read, offset
will be updated to point past the read item.
Available since: 1.12
Parameters
self
-
Type:
QmiMessage
A
QmiMessage
.The data is owned by the caller of the function. tlv_offset
-
Type:
gsize
Offset that was returned by qmi_message_tlv_read_init().
offset
-
Type:
gsize*
Address of the offset within the TLV value.
The argument will be modified by the function. out
-
Type:
guint8*
Return location for the read #guint8.
The argument will be set by the function. error
-
Type:
GError **
The return location for a recoverable error.
The argument can be NULL
.If the return location is not NULL
, then you must initialize it to aNULL
GError*
.The argument will be left initialized to NULL
by the function if there are no errors.In case of error, the argument will be set to a newly allocated GError
; the caller will take ownership of the data, and be responsible for freeing it.