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 22 span.virtual_style 23 { 24 font-size : 8pt; 25 color : white; 26 font-weight : bold; 27 background : #0a0; 28 border-left : solid 1px #0f0; 29 border-top : solid 1px #0f0; 30 border-right : solid 1px #060; 31 border-bottom : solid 1px #060; 32 padding-left : 2px; 33 padding-right : 2px; 34 } 35 36 span.protected_style 37 { 38 font-size : 8pt; 39 color : white; 40 font-weight : bold; 41 background : #444; 42 border-left : solid 1px #ccc; 43 border-top : solid 1px #ccc; 44 border-right : solid 1px #222; 45 border-bottom : solid 1px #222; 46 padding-left : 2px; 47 padding-right : 2px; 48 } 49 --></style> 50<title>nn::boss::NsData</title> 51 </head> 52 <body> 53<h1><CODE>nn::boss::NsData</CODE> Class</h1> 54<h2>Syntax</h2> 55 <div class="section"> 56<pre class="definition">class NsData</pre> 57 </div> 58<h2>Description</h2> 59 <div class="section"> 60<p>Class for representing NS data. Use for NS data operations (such as reading).</p><!-- write here --></div> 61 <a name="constant" id="constant"> 62<h2>Member Constants</h2> 63 <div class="section"> 64 <table class="members"> 65 <tr> 66 <td width="100"> 67<span class="static_style" title="static">S</span> 68 </td> 69 <th> 70<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> 71 </th> 72<td>NS data <CODE>ReadNsData</CODE> error definition. Failed to get the NS data header.</td> 73 </tr> 74 <tr> 75 <td width="100"> 76<span class="static_style" title="static">S</span> 77 </td> 78 <th> 79<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> 80 </th> 81<td>NS data <CODE>ReadNsData</CODE> error definition. Failed to load NS data.</td> 82 </tr> 83 <tr> 84 <td width="100"> 85<span class="static_style" title="static">S</span> 86 </td> 87 <th> 88<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> 89 </th> 90<td>NS data <CODE>ReadNsData</CODE> error definition. An IPC error occurred.</td> 91 </tr> </table> 92 </div> 93 </a> <a name="function" id="function"> 94<h2>Member Functions</h2> 95 <div class="section"> 96 <table class="members"> 97 <tr> 98 <td width="100"> </td> 99 <th> 100<a href="../../../nn/boss/NsData/NsData.html"><CODE>NsData</CODE></a> 101 </th> 102<td>Constructor.</td> 103 </tr> 104 <tr> 105<td width="100"> <span class="virtual_style" title="virtual">V</span> 106 </td> 107 <th> 108<a href="../../../nn/boss/NsData/~NsData.html"><CODE>~NsData</CODE></a> 109 </th> 110<td>Destructor.</td> 111 </tr> 112 <tr> 113 <td width="100"> </td> 114 <th> 115<a href="../../../nn/boss/NsData/Initialize.html"><CODE>Initialize</CODE></a> 116 </th> 117<td>Initializes NS data for the specified serial ID. (Running this function allows you to reuse instances that have been used before.)</td> 118 </tr> 119 <tr> 120 <td width="100"> </td> 121 <th> 122<a href="../../../nn/boss/NsData/Delete.html"><CODE>Delete</CODE></a> 123 </th> 124<td>Deletes an NS data file. Note that the specified NS data file might not be found, such as if the file was auto-deleted or if there was not enough space available when downloading the NS archive.</td> 125 </tr> 126 <tr> 127 <td width="100"> </td> 128 <th> 129<a href="../../../nn/boss/NsData/GetHeaderInfo.html"><CODE>GetHeaderInfo</CODE></a> 130 </th> 131<td>Reads NS archive header information. When the following types of NSA header information are specified, you can get the corresponding values. At that time, you will need to have allocated the necessary memory. When less than the necessary memory is available, the <A><CODE>ResultInvalidNsDataGetHeadSize</CODE></A> error is returned. <CODE>NSD_TITLEID</CODE>: a 64-bit title ID. (s64) <CODE>NSD_FLAGS</CODE>: The NSD flag. (bit32) <CODE>NSD_DATATYPE</CODE>: The NSD data type. (bit32) <CODE>NSD_LENGTH</CODE>: The NSD length. (s32) <CODE>NSD_SERIALID</CODE>: The NSD serial ID. (u32) <CODE>NSD_VERSION</CODE>: The NSD version number. (u32) Note that the specified NS data file might not be found, such as if the file was auto-deleted or if there was not enough space available when downloading the NS archive.</td> 132 </tr> 133 <tr> 134 <td width="100"> </td> 135 <th> 136<a href="../../../nn/boss/NsData/ReadData.html"><CODE>ReadData</CODE></a> 137 </th> 138<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 a large NSD is loaded, as long as the same NS data is not accessed, it will not block other applications from loading NS data. Note that the specified NS data file might not be found and an error returned, such as if the file was auto-deleted or if there was not enough space available when downloading the NS archive.</td> 139 </tr> 140 <tr> 141 <td width="100"> </td> 142 <th> 143<a href="../../../nn/boss/NsData/SetReadDataPosition.html"><CODE>SetReadDataPosition</CODE></a> 144 </th> 145<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> 146 </tr> 147 <tr> 148 <td width="100"> </td> 149 <th> 150<a href="../../../nn/boss/NsData/SetAdditionalInfo.html"><CODE>SetAdditionalInfo</CODE></a> 151 </th> 152<td>Sets additional information about the NS data. The added information for NS data is information that can be freely used by the application, but note that this added information will be be initialized when a new version of the NS data is downloaded.</td> 153 </tr> 154 <tr> 155 <td width="100"> </td> 156 <th> 157<a href="../../../nn/boss/NsData/GetAdditionalInfo.html"><CODE>GetAdditionalInfo</CODE></a> 158 </th> 159<td>Gets additional information about the NS data. The added information for NS data is information that can be freely used by the application, but note that this added information will be be 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/SetReadFlag.html"><CODE>SetReadFlag</CODE></a> 165 </th> 166<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> 167 </tr> 168 <tr> 169 <td width="100"> </td> 170 <th> 171<a href="../../../nn/boss/NsData/GetReadFlag.html"><CODE>GetReadFlag</CODE></a> 172 </th> 173<td>Gets the read flag of the NS data.</td> 174 </tr> 175 <tr> 176 <td width="100"> </td> 177 <th> 178<a href="../../../nn/boss/NsData/GetLastUpdated.html"><CODE>GetLastUpdated</CODE></a> 179 </th> 180<td>Gets the NS data file update timestamp. Note that the update timestamp records the time at which the update was actually downloaded.</td> 181 </tr> </table> 182 </div> 183 </a> 184<h2>Revision History</h2> 185 <div class="section"> 186 <dl class="history"> 187 <dt>2010/09/16</dt> 188<dd>Initial version.<br /> 189 </dd> 190 </dl> 191 </div> 192 <hr><p>CONFIDENTIAL</p></body> 193</html>