Skip to main content

qmi_utils_write_string_to_buffer

Function qmi_utils_write_string_to_buffer 

Source
pub unsafe extern "C" fn qmi_utils_write_string_to_buffer(
    buffer: *mut *mut guint8,
    buffer_size: *mut guint16,
    length_prefix_size: guint8,
    in_: *const gchar,
)
Expand description

Writes a string to the buffer.

buffer: a buffer.
buffer_size: size of buffer.
length_prefix_size: size of the length prefix integer in bits.
in: string to write.

If length_prefix_size is greater than 0, a length prefix integer will be
included in the write operation.

The user needs to make sure that the buffer has enough space for both the
whole string and the length prefix.

Also note that both buffer and buffer_size get updated after the write.

Since: 1.0
Deprecated: 1.12: Use qmi_message_tlv_write_string() instead.