1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
5<meta http-equiv="Content-Style-Type" content="text/css" />
6<title>FSArchiveResource</title>
7<link rel="stylesheet" href="../css/nitro.css" type="text/css" />
8</head>
9<body>
10
11<h1>FSArchiveResource <img src="../image/NTR.gif"align="middle"><img src="../image/TWL.gif" align="middle"></h1>
12<h2>Definition</h2>
13<pre><code>
14
15typedef struct FSArchiveResource
16{
17    u64     totalSize;
18    u64     availableSize;
19    u32     maxFileHandles;
20    u32     currentFileHandles;
21    u32     maxDirectoryHandles;
22    u32     currentDirectoryHandles;
23    // for FAT archives.
24    u32     bytesPerSector;
25    u32     sectorsPerCluster;
26    u32     totalClusters;
27    u32     availableClusters;
28}
29FSArchiveResource;
30
31</code></pre>
32
33<h2>Description</h2>
34<p>A structure that indicates the resource information that can be obtained with <code><a href="archive/FS_GetArchiveResource.html">FS_GetArchiveResource()</a></code>. The details of each member are as follows.</p>
35<table>
36<tr><td>totalSize</td><td>Indicates the total size of an archive in bytes.<br />Note that this will be a 64-bit integer.</td></tr>
37<tr><td>availableSize</td><td>Indicates the amount of free space within an archive in bytes.<br />Note that this will be a 64-bit integer.</td></tr>
38<tr><td>maxFileHandles</td><td>Indicates the maximum number of files that can be opened simultaneously.</td></tr>
39<tr><td>currentFileHandles</td><td>Indicates the number of files that are currently open.</td></tr>
40<tr><td>maxDirectoryHandles</td><td>Indicates the maximum number of directories that can be opened simultaneously.</td></tr>
41<tr><td>currentDirectoryHandles</td><td>Indicates the number of directories that are currently open.</td></tr>
42<tr><td colspan='2' style='background-color:white'>The following members are only valid for archives that have FAT as the internal structure, such as <a href="archive_nand_spec.html">NAND archives</a> and <a href="archive_sdmc_spec.html">SD Card archives</a>.</td></tr>
43<tr><td>bytesPerSector</td><td>Indicates the number of bytes per sector.</td></tr>
44<tr><td>sectorsPerCluster</td><td>Indicates the number of sectors per cluster.</td></tr>
45<tr><td>totalClusters</td><td>Indicates the total number of clusters.</td></tr>
46<tr><td>availableClusters</td><td>Indicates the number of available clusters.</td></tr>
47</table>
48
49<h2>See Also</h2>
50<p><code><a href="archive/FS_GetArchiveResource.html">FS_GetArchiveResource</a></code></p>
51
52<h2>Revision History</h2>
53<p>
542007/12/17 Initial version.
55</p>
56<hr><p>CONFIDENTIAL</p></body>
57</html>
58