Important: The information in this document is obsolete and should not be used for new development.
OTGetNBPEntityLengthAsAddress
Obtains the size an NBP entity structure would be if it were formatted as a string.C INTERFACE
size_t OTGetNBPEntityLengthAsAddress(const NBPEntity* nbpEntity);C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
nbpEntity
- A pointer to the NBP entity structure you wish to determine the length of.
- function result The size of an NBP entity structure.
DISCUSSION
TheOTGetNBPEntityLengthAsAddress
function obtains the number of bytes needed to store an NBP entity structure into the name part of an NBP or combined DDP-NBP address structure.To store an NBP entity structure as an NBP address string, use the
OTSetAddressFromNBPEntity
function .SPECIAL CONSIDERATIONS
Use this function to determine the appropriate buffer size for an NBP entity before using theOTSetAddressFromNBPEntity
function.SEE ALSO
"The NBP Address Structure"."The Combined DDP-NBP Address Structure".