1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>NANDGetLengthAsync</title>
9</head>
10
11<body>
12
13<h1>NANDGetLengthAsync</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/nand.h&gt;
18
19typedef void (*NANDCallback)( s32 result, NANDCommandBlock *block );
20
21s32 NANDGetLengthAsync( NANDFileInfo *info, u32 *length, NANDCallback cb, NANDCommandBlock *block );
22</pre></dd></dl>
23
24<h2>Arguments</h2>
25<p>
26<TABLE class="arguments" border="1" >
27  <tr>
28<TH>info</TH>
29<TD>Pointer to a <CODE>NANDFileInfo</CODE> structure.</TD>
30  </tr>
31  <tr>
32<TH>length</TH>
33<TD>Pointer to a u32-type variable that stores the file size.</TD>
34  </tr>
35  <tr>
36<TH>cb</TH>
37<TD>Callback function to call when this function completes processing.</TD>
38  </tr>
39  <tr>
40<TH>block</TH>
41<TD>Command block structure to be passed to the callback function.</TD>
42  </tr>
43</TABLE>
44</p>
45
46
47<h2>Return Values</h2>
48<p>
49The result codes that may be returned by <code>NANDGetLengthAsync</code> are listed below. Returns <CODE>NAND_RESULT_OK</CODE> when the request begins normally.
50<p>
51<code>
52NAND_RESULT_OK<br>
53NAND_RESULT_ACCESS<br>
54NAND_RESULT_ALLOC_FAILED<br>
55NAND_RESULT_BUSY<br>
56NAND_RESULT_INVALID<br>
57NAND_RESULT_FATAL_ERROR<br>
58</code>
59</p>
60<p>
61The result codes that may be passed to the callback function are listed below.
62</p>
63<p>
64<code>
65NAND_RESULT_OK<br>
66NAND_RESULT_ACCESS<br>
67NAND_RESULT_INVALID<br>
68NAND_RESULT_UNKNOWN<br>
69NAND_RESULT_FATAL_ERROR<br>
70</code>
71</p>
72</p>
73
74<H2>Description</H2>
75<p>
76Asynchronously gets the file size. The size is given in bytes. <code>NAND_RESULT_BUSY</code> is returned and this function call is denied when the queue for accepting requests inside the library is full.
77</p>
78
79<h2>See Also</h2>
80<p class="reference">
81<a href="./NANDGetLength.html">NANDGetLength</a>
82</p>
83
84<H2>Revision History</H2>
85<p>
862008/08/01 Revised the result codes that are passed to the callback function.<br>2008/05/13 Described the result codes passed to the callback function.<br>2006/06/16 Initial version.<BR>
87</p>
88
89<hr><p>CONFIDENTIAL</p></body>
90</html>
91