FMIceLinkIFileStream Protocol Reference

Declared in FMIceLinkIFileStream.h

Overview

A file stream.

– close required method

Closes the file stream.
- (void)close

Discussion

Closes the file stream.

Declared In

FMIceLinkIFileStream.h

– exists required method

Returns a boolean value indicating whether the file exists.
- (bool)exists

Discussion

Returns a boolean value indicating whether the file exists.

Declared In

FMIceLinkIFileStream.h

– flush required method

Flushes the file stream.
- (bool)flush

Discussion

Flushes the file stream.

Declared In

FMIceLinkIFileStream.h

– length required method

Gets the file stream length (must be opened first).
- (long long)length

Discussion

Gets the file stream length (must be opened first).

Declared In

FMIceLinkIFileStream.h

– openWithAccess: required method

Opens the file stream.
- (void)openWithAccess:(FMIceLinkFileStreamAccess)access

Parameters

access

The access requirement.

Discussion

Opens the file stream.

Declared In

FMIceLinkIFileStream.h

– path required method

Gets the path.
- (NSString *)path

Discussion

Gets the path.

Declared In

FMIceLinkIFileStream.h

– position required method

Gets the position in the file stream.
- (long long)position

Discussion

Gets the position in the file stream.

Declared In

FMIceLinkIFileStream.h

– readWithData:index:length: required method

Reads data from the file stream.
- (int)readWithData:(NSMutableData *)data index:(int)index length:(int)length

Parameters

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.

Return Value

The number of bytes read from the file.

Discussion

Reads data from the file stream.

Declared In

FMIceLinkIFileStream.h

– setPosition: required method

Sets the [position](../Protocols/FMIceLinkIFileStream.html#//api/name/position) in the file stream.
- (void)setPosition:(long long)value

Discussion

Sets the [position](../Protocols/FMIceLinkIFileStream.html#//api/name/position) in the file stream.

Declared In

FMIceLinkIFileStream.h

– writeToWithLocation:data:index:length: required method

Writes data to the file stream.
- (bool)writeToWithLocation:(int)location data:(NSMutableData *)data index:(int)index length:(int)length

Parameters

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.

Return Value

true if the data was written; otherwise, false.

Discussion

Writes data to the file stream.

Declared In

FMIceLinkIFileStream.h

– writeWithData:index:length: required method

Writes data to the file stream.
- (bool)writeWithData:(NSMutableData *)data index:(int)index length:(int)length

Parameters

data

The data to write.

index

The index at which to start reading.

length

The number of bytes to write.

Return Value

true if the data was written; otherwise, false.

Discussion

Writes data to the file stream.

Declared In

FMIceLinkIFileStream.h