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 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 --></style> 48<title>nn::boss::NsData</title> 49 </head> 50 <body> 51<h1><CODE>nn::boss::NsData</CODE> Class</h1> 52<h2>Syntax</h2> 53 <div class="section"> 54 <pre class="definition">class NsData</pre> 55 </div> 56<h2>Description</h2> 57 <div class="section"> 58<p>Class for representing NS data. Use for NS data operations (such as reading).</p><!-- write here --></div> 59 <a name="constant" id="constant"> 60<h2>Member Constants</h2> 61 <div class="section"> 62 <table class="members"> 63 <tr> 64 <td width="100"> 65<span class="static_style" title="static">S</span> 66 </td> 67 <th> 68<span class="argument"><a href="../../../nn/boss/NsData/NN_BOSS_NSDATA_READ_ERROR_GET_HEADER.html"><CODE>NN_BOSS_NSDATA_READ_ERROR_GET_HEADER</CODE></a></span> 69 </th> 70<td>NS data <CODE>ReadNsData</CODE> error definition. Failed to get the NS data header.</td> 71 </tr> 72 <tr> 73 <td width="100"> 74<span class="static_style" title="static">S</span> 75 </td> 76 <th> 77<span class="argument"><a href="../../../nn/boss/NsData/NN_BOSS_NSDATA_READ_ERROR_READ_DATA.html"><CODE>NN_BOSS_NSDATA_READ_ERROR_READ_DATA</CODE></a></span> 78 </th> 79<td>NS data <CODE>ReadNsData</CODE> error definition. Failed to load NS data.</td> 80 </tr> 81 <tr> 82 <td width="100"> 83<span class="static_style" title="static">S</span> 84 </td> 85 <th> 86<span class="argument"><a href="../../../nn/boss/NsData/NN_BOSS_NSDATA_READ_ERROR_IPC.html"><CODE>NN_BOSS_NSDATA_READ_ERROR_IPC</CODE></a></span> 87 </th> 88<td>NS data <CODE>ReadNsData</CODE> error definition. An IPC error occurred.</td> 89 </tr> 90 <tr> 91 <td width="100"> 92<span class="static_style" title="static">S</span> 93 </td> 94 <th> 95<span class="argument"><a href="../../../nn/boss/NsData/NN_BOSS_NSDATA_READ_ERROR_UPDATED.html"><CODE>NN_BOSS_NSDATA_READ_ERROR_UPDATED</CODE></a></span> 96 </th> 97<td>NS data <CODE>ReadNsData</CODE> error definition. The target NS data version was updated since the last time data was obtained.</td> 98 </tr> </table> 99 </div> 100 </a> <a name="function" id="function"> 101<h2>Member Functions</h2> 102 <div class="section"> 103 <table class="members"> 104 <tr> 105 <td width="100"> </td> 106 <th> 107<a href="../../../nn/boss/NsData/NsData.html"><CODE>NsData</CODE></a> 108 </th> 109<td>Constructor.</td> 110 </tr> 111 <tr> 112<td width="100"> <span class="virtual_style" title="virtual">V</span> 113 </td> 114 <th> 115<a href="../../../nn/boss/NsData/~NsData.html"><CODE>~NsData</CODE></a> 116 </th> 117<td>Destructor.</td> 118 </tr> 119 <tr> 120 <td width="100"> </td> 121 <th> 122<a href="../../../nn/boss/NsData/Initialize.html"><CODE>Initialize</CODE></a> 123 </th> 124<td>Initializes NS data for the specified serial ID. (Running this function allows you to reuse instances that have been used before.)</td> 125 </tr> 126 <tr> 127 <td width="100"> </td> 128 <th> 129<a href="../../../nn/boss/NsData/Delete.html"><CODE>Delete</CODE></a> 130 </th> 131<td>Deletes an NS data file. <B>Note:</B> Sometimes the target NS data cannot be found due to one of the following: another application has already deleted the NS data, there was not enough space available when downloading the NS archive, or the data has been automatically deleted.</td> 132 </tr> 133 <tr> 134 <td width="100"> </td> 135 <th> 136<a href="../../../nn/boss/NsData/GetHeaderInfo.html"><CODE>GetHeaderInfo</CODE></a> 137 </th> 138<td>Reads NS archive header information. Specify the following types of NS archive header information to get the corresponding values. To do so, you must allocate the necessary memory in advance. When less than the necessary memory is available, the <a href="../../../nn/boss/ResultInvalidNsDataGetHeadSize/Overview.html"><CODE>ResultInvalidNsDataGetHeadSize</CODE></A> error is returned. <BR><CODE>NSD_TITLEID</CODE>: 64-bit title ID. (<CODE>s64</CODE>) <BR><CODE>NSD_FLAGS</CODE>: NS data flags. (<CODE>bit32</CODE>) <BR><CODE>NSD_DATATYPE</CODE>: NS data type. (<CODE>bit32</CODE>) <BR><CODE>NSD_LENGTH</CODE>: NS data length. (<CODE>s32</CODE>) <BR><CODE>NSD_SERIALID</CODE>: NS data serial ID. (<CODE>u32</CODE>) <BR><CODE>NSD_VERSION</CODE>: NS data version number. (<CODE>u32</CODE>) <BR><B>Note:</B> Sometimes the target NS data cannot be found, possibly because another application has already deleted the NS data, there was not enough space available when downloading the NS archive, or the data was automatically deleted.</td> 139 </tr> 140 <tr> 141 <td width="100"> </td> 142 <th> 143<a href="../../../nn/boss/NsData/ReadData.html"><CODE>ReadData</CODE></a> 144 </th> 145<td>Reads an NS data file. The interface is similar to that of file access. After allocating an adequately sized buffer, call this function multiple times to read an entire NS data file. Returns <CODE>0</CODE> upon reaching end of file, indicating that the read is finished. An application can only load one NS data file at once, but even if it loads a large NSD, other applications are not blocked from loading NS data as long as the other applications do not try to access the same NS data. <BR><B>Note:</B> An error will be returned if the target NS data cannot be found, whether it is because another application has already deleted the NS data, there was not enough space available when downloading the NS archive, or the data was automatically deleted. The function returns <CODE>NN_BOSS_NSDATA_READ_ERROR_UPDATED</CODE> in those rare instances where the specified NS data version has been updated since the last time the data was obtained. In such cases, call <a href="../../../nn/boss/NsData/Initialize.html"><CODE>Initialize</CODE></a> and then read the data again.</td> 146 </tr> 147 <tr> 148 <td width="100"> </td> 149 <th> 150<a href="../../../nn/boss/NsData/SetReadDataPosition.html"><CODE>SetReadDataPosition</CODE></a> 151 </th> 152<td>Changes the read position in an NS data file. The interface is similar to that of file access. See <a href="../../../nn/boss/PositionBase.html"><CODE>PositionBase</CODE></a> for details on the base for changing the read position.</td> 153 </tr> 154 <tr> 155 <td width="100"> </td> 156 <th> 157<a href="../../../nn/boss/NsData/SetAdditionalInfo.html"><CODE>SetAdditionalInfo</CODE></a> 158 </th> 159<td>Sets additional information about the NS data. <BR><B>Note:</B> The NS data additional information is information that can be freely used by the application, but this additional information is always initialized when a new version of the NS data is downloaded.</td> 160 </tr> 161 <tr> 162 <td width="100"> </td> 163 <th> 164<a href="../../../nn/boss/NsData/GetAdditionalInfo.html"><CODE>GetAdditionalInfo</CODE></a> 165 </th> 166<td>Gets additional information about the NS data. <BR><B>Note:</B> The NS data additional information is information that can be freely used by the application, but this additional information is always initialized when a new version of the NS data is downloaded.</td> 167 </tr> 168 <tr> 169 <td width="100"> </td> 170 <th> 171<a href="../../../nn/boss/NsData/SetReadFlag.html"><CODE>SetReadFlag</CODE></a> 172 </th> 173<td>Sets the read flag of the NS data. The application can set this, but note that the flag is reset to "unread" when a new version of the NS data file is downloaded.</td> 174 </tr> 175 <tr> 176 <td width="100"> </td> 177 <th> 178<a href="../../../nn/boss/NsData/GetReadFlag.html"><CODE>GetReadFlag</CODE></a> 179 </th> 180<td>Gets the read flag of the NS data.</td> 181 </tr> 182 <tr> 183 <td width="100"> </td> 184 <th> 185<a href="../../../nn/boss/NsData/GetLastUpdated.html"><CODE>GetLastUpdated</CODE></a> 186 </th> 187<td>Gets the NS data file update timestamp. Note that the update timestamp records the time at which the update was actually downloaded.</td> 188 </tr> </table> 189 </div> 190 </a> 191<h2>Revision History</h2> 192 <div class="section"> 193 <dl class="history"> 194 <dt>2010/09/16</dt> 195<dd>Initial version.<br /> 196 </dd> 197 </dl> 198 </div> 199 <hr><p>CONFIDENTIAL</p></body> 200</html> 201