A file stream. More...
Instance Methods | |
(void) | - close |
Closes the file stream. More... | |
(bool) | - exists |
Returns a boolean value indicating whether the file exists. More... | |
(bool) | - flush |
Flushes the file stream. More... | |
(long long) | - length |
Gets the file stream length (must be opened first). More... | |
(void) | - openWithAccess: |
Opens the file stream. More... | |
(NSString *) | - path |
Gets the path. More... | |
(long long) | - position |
Gets the position in the file stream. More... | |
(int) | - readWithData:index:length: |
Reads data from the file stream. More... | |
(void) | - setPosition: |
Sets the position in the file stream. More... | |
(bool) | - writeToWithLocation:data:index:length: |
Writes data to the file stream. More... | |
(bool) | - writeWithData:index:length: |
Writes data to the file stream. More... | |
A file stream.
- (void) close |
Closes the file stream.
- (bool) exists |
Returns a boolean value indicating whether the file exists.
- (bool) flush |
Flushes the file stream.
- (long long) length |
Gets the file stream length (must be opened first).
- (void) openWithAccess: | (FMLiveSwitchFileStreamAccess) | access |
Opens the file stream.
access | The access requirement. |
- (NSString*) path |
Gets the path.
- (long long) position |
Gets the position in the file stream.
- (int) readWithData: | (NSMutableData *) | data | |
index: | (int) | index | |
length: | (int) | length | |
Reads data from the file stream.
data | The buffer to fill with data from the file. |
index | The index at which to start writing. |
length | The maximum number of bytes to read. |
- (void) setPosition: | (long long) | value |
Sets the position in the file stream.
- (bool) writeToWithLocation: | (int) | location | |
data: | (NSMutableData *) | data | |
index: | (int) | index | |
length: | (int) | length | |
Writes data to the file stream.
location | The location to write to. |
data | The data to write to the file. |
index | The index at which to start reading. |
length | The number of bytes to write. |
true
if the data was written; otherwise, false
. - (bool) writeWithData: | (NSMutableData *) | data | |
index: | (int) | index | |
length: | (int) | length | |
Writes data to the file stream.
data | The data to write. |
index | The index at which to start reading. |
length | The number of bytes to write. |
true
if the data was written; otherwise, false
.