1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" /> 7<title>Write</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/hio/Overview.html">hio</a>::<a href="../../../../nn/hio/CTR/Overview.html">CTR</a>::<a href="../../../../nn/hio/CTR/SerialChannel/Overview.html">SerialChannel</a>::Write</CODE> Member Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition">#include <nn/hio.h> 14 15<a href="../../../../nn/Result/Overview.html">Result</a> Write( 16 size_t * pWrittenSize, 17 const void * buf, 18 size_t size, 19 <a href="../../../../nn_types/bit32.html">bit32</a> attr = ATTRIBUTE_NONE 20); 21 22<a href="../../../../nn_types/s32.html">s32</a> Write( 23 const void * buf, 24 size_t size, 25 <a href="../../../../nn_types/bit32.html">bit32</a> attr = ATTRIBUTE_NONE 26); 27</pre> 28 </div> 29<h2>List of Overloaded Member Functions</h2> 30 <div class="section"> 31 <table class="members"> 32 <tr> 33 <td> 34<a href="./Write(0).html"><CODE>Write(size_t *, const void *, size_t, bit32)</CODE> </a> 35 </td> 36<td>Sends data to the host and returns the result of the operation.</td> 37 </tr> 38 <tr> 39 <td> 40<a href="./Write(1).html"><CODE>Write(const void *, size_t, bit32)</CODE> </a> 41 </td> 42<td>Sends data to the host and returns the transmission size.</td> 43 </tr> </table> 44 </div> 45<h2>Description of <CODE>Write(size_t *, const void *, size_t, bit32)</CODE></h2> 46<div class="section"><p><B>size</B> bytes of data from the buffer specified by <B>buf</B> are sent to the host .<br />The <B>attr</B> parameter specifies how to behave when the send buffer is full.<br />The process returns a <CODE><a href="../../../../nn/Result/Overview.html">nn::Result</a></CODE>-type result.</p><!-- write here --></div> 47<h2>Description of <CODE>Write(const void *, size_t, bit32)</CODE></h2> 48<div class="section"><p><B>size</B> bytes of data from the buffer specified by <B>buf</B> are sent to the host .<br />The <B>attr</B> parameter specifies how to behave when the send buffer is full.<br />Returns the number of bytes that were sent.</p><!-- write here --></div> 49 <hr><p>CONFIDENTIAL</p></body> 50</html> 51