nfc_get_ndef_message_byte_length()

Return the serialized length of a NDEF message.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_get_ndef_message_byte_length(const nfc_ndef_message_t *msg, size_t *byte_length)

Since:

BlackBerry 10.0.0

Arguments:

msg

The NDEF message to retrieve the length of.

byte_length

The returned byte length of the message.

Library:

libnfc (For the qcc command, use the -l nfc option to link against this library)

Description:

This function returns the length in bytes of all records contained inside an NDEF message.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.