pub unsafe extern "C" fn bt_data_serialize(
input: *const bt_data,
output: *mut u8,
) -> usize
Expand description
@brief Serialize a @ref bt_data struct into an advertising structure (a flat byte array).
The data are formatted according to the Bluetooth Core Specification v. 5.4, vol. 3, part C, 11.
@param[in] input Single @ref bt_data structure to read from.
@param[out] output Buffer large enough to store the advertising structure in
@p input. The size of it must be at least the size of the
input->data_len + 2
(for the type and the length).
@return Number of bytes written in @p output.