Return the serialized data of NDEF message.
#include <nfc/nfc_ndef.h>
NFC_API nfc_result_t nfc_get_ndef_message_bytes(const nfc_ndef_message_t *msg, uchar_t *data)
BlackBerry 10.0.0
The NDEF message to retrieve the data from.
A pointer to a pre-allocated array to return the data bytes of the message. This array must be at least equal to the length returned by the nfc_get_ndef_message_byte_length() function; otherwise, a call to this function will generate undefined behavior.
This function returns the data bytes of all records contained inside an NDEF message.
NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.