<div dir="ltr">


        
        
        
        <style type="text/css">p { margin-bottom: 0.25cm; line-height: 120%; }</style>


<p style="margin-bottom:0cm;line-height:100%" lang="en-US"><span style="background:transparent">With
my application, I don't want to generate a fixed length for the
content field in the Data packet. <br></span></p><p style="margin-bottom:0cm;line-height:100%" lang="en-US"><span style="background:transparent">So I want to know in advance the
length of the other TLVs</span> and set the content size to the remaining bytes.<br></p>

</div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-07 18:46 GMT+02:00 Thompson, Jeff <span dir="ltr"><<a href="mailto:jefft0@remap.ucla.edu" target="_blank">jefft0@remap.ucla.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>These are not exposed in the API, as the API is abstracted from the encoding details which change frequently.  </div>
<div><br>
</div>
<div>May I ask why your application needs to know, for example, the MetaInfo encoding length?  Maybe we can find a way to meet your application needs.  (The API provides some mechanism for manipulating TLV encodings.)</div>
<div><br>
</div>
<div>- Jeff T</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>ahmed abencherou <<a href="mailto:a.abencherou@gmail.com" target="_blank">a.abencherou@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Friday, August 7, 2015 at 9:36:00<br>
<span style="font-weight:bold">To: </span>Jeff Thompson <<a href="mailto:jefft0@remap.ucla.edu" target="_blank">jefft0@remap.ucla.edu</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:ndn-interest@lists.cs.ucla.edu" target="_blank">ndn-interest@lists.cs.ucla.edu</a>" <<a href="mailto:ndn-interest@lists.cs.ucla.edu" target="_blank">ndn-interest@lists.cs.ucla.edu</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Ndn-interest] Questions about jNDN<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<p style="margin-bottom:0cm;line-height:100%" lang="en-US">Thank you Jeff</p>
<p style="margin-bottom:0cm;line-height:100%" lang="en-US">But if I want to get the length of Name, MetaInfo or Signature TLVs in Data packet not the size of the entire packet??</p>
<p style="margin-bottom:0cm;line-height:100%" lang="en-US"><br>
</p>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-08-07 18:23 GMT+02:00 Thompson, Jeff <span dir="ltr">
<<a href="mailto:jefft0@remap.ucla.edu" target="_blank">jefft0@remap.ucla.edu</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hi Ahmed, See inline.</div>
<span>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="line-height:14px;font-family:Calibri,sans-serif;font-size:14px">I have two questions related to jNDN:</span></div>
<div>
<div dir="ltr">
<ol>
<li>
<p style="margin-bottom:0cm;line-height:100%" lang="en-US">Does the current version support Nack interest i.e. can I send a nack interest whether the requested content does not exist ?</p>
</li></ol>
</div>
</div>
</span></span>
<div>No not yet,</div>
<span>
<div>
<div dir="ltr"><span>
<ol>
<li>
<p style="margin-bottom:0cm;line-height:100%" lang="en-US">I want to get the length of each TLV in Data packet, I means the number of bytes that type, length and value occupy. Does it provide a function to get this ?</p>
</li></ol>
</span>
<p style="margin-bottom:0cm;line-height:100%" lang="en-US">You can get the size of the entire data packet TLV with:</p>
</div>
</div>
</span>
<div>   data.wireEncode().size()</div>
<div><br>
</div>
<div>Thanks,</div>
<div>- Jeff T</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div>
<div dir="ltr">ABENCHEROU Ahmed<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div></div></span>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">ABENCHEROU Ahmed<br><br></div></div>
</div>