{{+bindTo:partials.standard_nacl_article}}
FileSystem () | |
FileSystem (const FileSystem &other) | |
FileSystem (const Resource &resource) | |
FileSystem (PassRef, PP_Resource resource) | |
FileSystem (const InstanceHandle &instance, PP_FileSystemType type) | |
int32_t | Open (int64_t expected_size, const CompletionCallback &cc) |
static bool | IsFileSystem (const Resource &resource) |
The FileSystem
class identifies the file system type associated with a file.
Constructs an is_null() filesystem resource.
If you use this constructor, you will have to assign it to a "real" FileSystem object before you can use it.
pp::FileSystem::FileSystem | ( | const FileSystem & | other | ) |
The copy constructor for FileSystem
.
[in] | other | A reference to a FileSystem . |
pp::FileSystem::FileSystem | ( | const Resource & | resource | ) | [explicit] |
Constructs a FileSystem
from a Resource
.
[in] | resource | A Resource containing a file system. |
pp::FileSystem::FileSystem | ( | PassRef | , |
PP_Resource | resource | ||
) |
A constructor used when you have received a PP_Resource as a return value that has already been reference counted.
[in] | resource | A PP_Resource corresponding to a PPB_FileSystem. |
pp::FileSystem::FileSystem | ( | const InstanceHandle & | instance, |
PP_FileSystemType | type | ||
) |
This constructor creates a file system object of the given type.
[in] | instance | The instance with which this resource will be associated. |
[in] | type | A file system type as defined by PP_FileSystemType enum. |
static bool pp::FileSystem::IsFileSystem | ( | const Resource & | resource | ) | [static] |
Checks whether a Resource
is a file system, to test whether it is appropriate for use with the FileSystem
constructor.
[in] | resource | A Resource to test. |
resource
is a file system. int32_t pp::FileSystem::Open | ( | int64_t | expected_size, |
const CompletionCallback & | cc | ||
) |
Open() opens the file system.
A file system must be opened before running any other operation on it.
[in] | expected_size | The expected size of the file system. Note that this does not request quota; to do that, you must either invoke requestQuota from JavaScript: http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-requesting-quota or set the unlimitedStorage permission for Chrome Web Store apps: http://code.google.com/chrome/extensions/manifest.html#permissions |
[in] | cc | A PP_CompletionCallback to be called upon completion of Open(). |
pp_errors.h
.