<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">if you use the CS of NFD, you can use the size() method of the CS class to get the number of packets stored in CS:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/cs.hpp#L125" class="">https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/cs.hpp#L125</a></div><div class=""><br class=""></div><div class="">If you use the CS of ndnSIM, you can use the GetSize() method to retrieve the number of packets stored in CS:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/ndn-content-store.hpp#L151-L152" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/ndn-content-store.hpp#L151-L152</a></div><div class=""><br class=""></div><div class="">Use example:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/a4915caa0c4121f2dd87fd3d7cc3b6eb91632f16/tests/other/ndn-test.cpp#L113-L116" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/a4915caa0c4121f2dd87fd3d7cc3b6eb91632f16/tests/other/ndn-test.cpp#L113-L116</a></div><div class=""><br class=""></div><div class="">Hope that this helps!</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On May 30, 2016, at 4:42 AM, Dhiab Imen <<a href="mailto:dhiabimen@gmail.com" class="">dhiabimen@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi all,<div class=""><br class=""></div><div class="">I want to know if it is possible to get total size of cached content in the content Store? and how??</div><div class=""> </div><div class="">thanks for help.<br class=""><div class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><span style="" class="">Cordialement </span></div><div class=""><span style="" class="">Imen Dhiab</span></div><div class=""><span style="" class=""><br class=""></span></div><div class=""><span style="" class="">***************************************************************************************************</span><br class=""></div><div class=""><font class="">Ingénieur Informatique diplômé de l'Ecole Nationale d'Ingénieurs de Sfax.</font></div><div class=""><font class="">Membre de l'unité de recherche SAGE (Systèmes Avancés en Génie Electrique), Ecole Nationale d'Ing</font><span style="" class="">énieurs de Sousse.</span></div><div class=""><font class="">+216 53 59 19 88</font></div><div class=""><font class="">Pages personnelles : <a href="http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html" target="_blank" class="">http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html</a></font></div><div class="">***************************************************************************************************</div></div></div>
</div></div></div></div></blockquote></div><br class=""></div></body></html>