<div dir="ltr">Hi John<div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I'm working on some custom caching scenarios and need a large cache space.  When I was using smaller spaces, with say, 100 or so cache objects available to request, I didn't seem to have any troubles.</div><div><br></div><div>Now I'm encountering some strange behaviors and am curious about something.  I was previously under the assumption that the Content IDs used hexadecimal values.  Now I'm not entirely sure.  I increased the NumberOfContents to 1 million, and I'm getting values that don't fall into any sort of hexadecimal format.  I'm seeing the characters "h" and "N" and "H" show up frequently.  These are of course out of range.</div></div></blockquote><div>They are encoded according to naming convention <<a href="https://named-data.net/publications/techreports/ndn-tr-22-ndn-memo-naming-conventions/">https://named-data.net/publications/techreports/ndn-tr-22-ndn-memo-naming-conventions/</a>> , and then displayed as NDN URI <<a href="https://named-data.net/doc/NDN-TLV/current/name.html#ndn-uri-scheme">https://named-data.net/doc/NDN-TLV/current/name.html#ndn-uri-scheme</a>> .</div><div>Do not try to interpret them as strings.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I had also been doing some parsing and conversions so now I'm getting a lot of situations where my stoi calls are receiving bad input.</div></div></blockquote><div>You may parse the version/segment/sequence numbers with ndn-cxx's name::Component::from* methods. <<a href="https://github.com/named-data/ndn-cxx/blob/b6828918cd5ba3d7be144bb24e9d3082dc1d2b69/src/name-component.hpp#L359-L432">https://github.com/named-data/ndn-cxx/blob/b6828918cd5ba3d7be144bb24e9d3082dc1d2b69/src/name-component.hpp#L359-L432</a>></div><div><br></div><div>Yours, Junxiao</div></div></div></div></div>