[ndnSIM] Name Append Number

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri May 15 11:01:03 PDT 2015


Hi Ehsan,

When you use appendNumber, this number is added in binary form according to current NDN naming conventions (http://named-data.net/publications/techreports/ndn-tr-22-ndn-memo-naming-conventions/ <http://named-data.net/publications/techreports/ndn-tr-22-ndn-memo-naming-conventions/>).

To get the number, you just need to use .toNumber()  method on the name component (e.g., if it is the last component, then name.get(-1).toNumber())

—
Alex

> On May 15, 2015, at 12:17 AM, Ehsan Hemmati <ehsan at SOE.UCSC.EDU> wrote:
> 
> Hi,
> 
> Whenever I use appendNumber(46), it appends "....." instead of number 46!
> How should I solve the problem.
> Best,
> Ehsan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150515/3b5331a8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150515/3b5331a8/attachment.bin>


More information about the ndnSIM mailing list