<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>unbound: testcode/readhex.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_aae0f736e7b956edab2d753def1ee5b5.html">testcode</a> </div> </div> <div class="contents"> <h1>readhex.h File Reference</h1>Declarations useful for the unit tests. <a href="#_details">More...</a> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="readhex_8h.html#93759972172da389687dbae609c22c2c">hex_to_buf</a> (ldns_buffer *pkt, const char *hex)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Helper to convert hex string to packet buffer. <a href="#93759972172da389687dbae609c22c2c"></a><br></td></tr> </table> <hr><h2>Detailed Description</h2> Declarations useful for the unit tests. <p> <hr><h2>Function Documentation</h2> <a class="anchor" name="93759972172da389687dbae609c22c2c"></a><!-- doxytag: member="readhex.h::hex_to_buf" ref="93759972172da389687dbae609c22c2c" args="(ldns_buffer *pkt, const char *hex)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void hex_to_buf </td> <td>(</td> <td class="paramtype">ldns_buffer * </td> <td class="paramname"> <em>pkt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>hex</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Helper to convert hex string to packet buffer. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pkt,:</em> </td><td>buffer to put result in. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hex,:</em> </td><td>string of hex data. Spaces and ';...' comments are skipped. </td></tr> </table> </dl> <p>References <a class="el" href="log_8c_source.html#l00267">fatal_exit()</a>, <a class="el" href="log_8h_source.html#l00185">log_assert</a>, and <a class="el" href="readhex_8c_source.html#l00046">skip_whites()</a>.</p> <p>Referenced by <a class="el" href="unitmsgparse_8c_source.html#l00286">perftestpkt()</a>, <a class="el" href="pktview_8c_source.html#l00058">read_input()</a>, and <a class="el" href="unitmsgparse_8c_source.html#l00322">testpkt()</a>.</p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Oct 13 06:46:31 2009 for unbound by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>