A utility class for reading/writing from/to a file (FMLiveSwitchFileAssistant). More...
Instance Methods | |
(FMLiveSwitchFileStream *) | - file |
Gets the file. More... | |
(instancetype) | - initWithFile: |
Initializes a new instance of the FMLiveSwitchFileAssistant class. More... | |
(bool) | - littleEndian |
Gets whether to read/write using little-endian ordering. More... | |
(int) | - read16 |
Converts a 16-bit network representation to an integer. More... | |
(int) | - read24 |
Converts a 24-bit network representation to an integer. More... | |
(long long) | - read32 |
Converts a 32-bit network representation to an integer. More... | |
(long long) | - read40 |
Converts a 40-bit network representation to an integer. More... | |
(long long) | - read48 |
Converts a 48-bit network representation to an integer. More... | |
(long long) | - read56 |
Converts a 56-bit network representation to an integer. More... | |
(long long) | - read64 |
Converts a 64-bit network representation to an integer. More... | |
(int) | - read8 |
Converts an 8-bit network representation to an integer. More... | |
(NSMutableData *) | - readOpaque16 |
Reads a 16-bit-length opaque value from a File. More... | |
(NSMutableData *) | - readOpaque24 |
Reads a 24-bit-length opaque value from a File. More... | |
(NSMutableData *) | - readOpaque32 |
Reads a 32-bit-length opaque value from a File. More... | |
(NSMutableData *) | - readOpaque8 |
Reads an 8-bit-length opaque value from a File. More... | |
(NSMutableData *) | - readWithLength: |
Reads a value from a File. More... | |
(void) | - setLittleEndian: |
Sets whether to read/write using little-endian ordering. More... | |
(void) | - write: |
Adds a value to a File. More... | |
(void) | - write:offset:length: |
Adds a value to a File. More... | |
(void) | - write16: |
Adds a 16-bit value to a File. More... | |
(void) | - write16ToWithLocation:value: |
Adds a 16-bit value to a File. More... | |
(void) | - write24: |
Adds a 24-bit value to a File. More... | |
(void) | - write24ToWithLocation:value: |
Adds a 24-bit value to a File. More... | |
(void) | - write32: |
Adds a 32-bit value to a File. More... | |
(void) | - write32ToWithLocation:value: |
Adds a 32-bit value to a File. More... | |
(void) | - write40: |
Adds a 40-bit value to a File. More... | |
(void) | - write40ToWithLocation:value: |
Adds a 40-bit value to a File. More... | |
(void) | - write48: |
Adds a 48-bit value to a File. More... | |
(void) | - write48ToWithLocation:value: |
Adds a 48-bit value to a File. More... | |
(void) | - write56: |
Adds a 56-bit value to a File. More... | |
(void) | - write56ToWithLocation:value: |
Adds a 56-bit value to a File. More... | |
(void) | - write64: |
Adds a 64-bit value to a File. More... | |
(void) | - write64ToWithLocation:value: |
Adds a 64-bit value to a File. More... | |
(void) | - write8: |
Adds an 8-bit value to a File. More... | |
(void) | - write8ToWithLocation:value: |
Adds an 8-bit value to a File. More... | |
(void) | - writeOpaque16: |
Adds a 16-bit-length opaque value to a File. More... | |
(void) | - writeOpaque16ToWithLocation:value: |
Adds a 16-bit-length opaque value to a File. More... | |
(void) | - writeOpaque24: |
Adds a 24-bit-length opaque value to a File. More... | |
(void) | - writeOpaque24ToWithLocation:value: |
Adds a 24-bit-length opaque value to a File. More... | |
(void) | - writeOpaque32: |
Adds a 32-bit-length opaque value to a File. More... | |
(void) | - writeOpaque32ToWithLocation:value: |
Adds a 32-bit-length opaque value to a File. More... | |
(void) | - writeOpaque40: |
Adds a 40-bit-length opaque value to a File. More... | |
(void) | - writeOpaque40ToWithLocation:value: |
Adds a 40-bit-length opaque value to a File. More... | |
(void) | - writeOpaque48: |
Adds a 48-bit-length opaque value to a File. More... | |
(void) | - writeOpaque48ToWithLocation:value: |
Adds a 48-bit-length opaque value to a File. More... | |
(void) | - writeOpaque56: |
Adds a 56-bit-length opaque value to a File. More... | |
(void) | - writeOpaque56ToWithLocation:value: |
Adds a 56-bit-length opaque value to a File. More... | |
(void) | - writeOpaque64: |
Adds a 64-bit-length opaque value to a File. More... | |
(void) | - writeOpaque64ToWithLocation:value: |
Adds a 64-bit-length opaque value to a File. More... | |
(void) | - writeOpaque8: |
Adds an 8-bit-length opaque value to a File. More... | |
(void) | - writeOpaque8ToWithLocation:value: |
Adds an 8-bit-length opaque value to a File. More... | |
(void) | - writeToWithLocation:value: |
Adds a value to a File. More... | |
Class Methods | |
(FMLiveSwitchFileAssistant *) | + fileAssistantWithFile: |
Initializes a new instance of the FMLiveSwitchFileAssistant class. More... | |
(NSMutableData *) | + readAllBytesWithPath: |
Reads all the bytes of a file into a byte array. More... | |
A utility class for reading/writing from/to a file (FMLiveSwitchFileAssistant).
- (FMLiveSwitchFileStream*) file |
Gets the file.
+ (FMLiveSwitchFileAssistant*) fileAssistantWithFile: | (FMLiveSwitchFileStream *) | file |
Initializes a new instance of the FMLiveSwitchFileAssistant class.
file | The file. |
- (instancetype) initWithFile: | (FMLiveSwitchFileStream *) | file |
Initializes a new instance of the FMLiveSwitchFileAssistant class.
file | The file. |
- (bool) littleEndian |
Gets whether to read/write using little-endian ordering.
- (int) read16 |
Converts a 16-bit network representation to an integer.
- (int) read24 |
Converts a 24-bit network representation to an integer.
- (long long) read32 |
Converts a 32-bit network representation to an integer.
- (long long) read40 |
Converts a 40-bit network representation to an integer.
- (long long) read48 |
Converts a 48-bit network representation to an integer.
- (long long) read56 |
Converts a 56-bit network representation to an integer.
- (long long) read64 |
Converts a 64-bit network representation to an integer.
- (int) read8 |
Converts an 8-bit network representation to an integer.
+ (NSMutableData*) readAllBytesWithPath: | (NSString *) | path |
Reads all the bytes of a file into a byte array.
path | The filepath to the file to read. |
- (NSMutableData*) readOpaque16 |
Reads a 16-bit-length opaque value from a File.
- (NSMutableData*) readOpaque24 |
Reads a 24-bit-length opaque value from a File.
- (NSMutableData*) readOpaque32 |
Reads a 32-bit-length opaque value from a File.
- (NSMutableData*) readOpaque8 |
Reads an 8-bit-length opaque value from a File.
- (NSMutableData*) readWithLength: | (int) | length |
Reads a value from a File.
length | The number of bytes to read. |
- (void) setLittleEndian: | (bool) | value |
Sets whether to read/write using little-endian ordering.
- (void) write16: | (int) | value |
Adds a 16-bit value to a File.
value | The value. |
- (void) write16ToWithLocation: | (int) | location | |
value: | (int) | value | |
Adds a 16-bit value to a File.
location | The location to write to. |
value | The value. |
- (void) write24: | (int) | value |
Adds a 24-bit value to a File.
value | The value. |
- (void) write24ToWithLocation: | (int) | location | |
value: | (int) | value | |
Adds a 24-bit value to a File.
location | The location to write to. |
value | The value. |
- (void) write32: | (long long) | value |
Adds a 32-bit value to a File.
value | The value. |
- (void) write32ToWithLocation: | (int) | location | |
value: | (long long) | value | |
Adds a 32-bit value to a File.
location | The location to write to. |
value | The value. |
- (void) write40: | (long long) | value |
Adds a 40-bit value to a File.
value | The value. |
- (void) write40ToWithLocation: | (int) | location | |
value: | (long long) | value | |
Adds a 40-bit value to a File.
location | The location to write to. |
value | The value. |
- (void) write48: | (long long) | value |
Adds a 48-bit value to a File.
value | The value. |
- (void) write48ToWithLocation: | (int) | location | |
value: | (long long) | value | |
Adds a 48-bit value to a File.
location | The location to write to. |
value | The value. |
- (void) write56: | (long long) | value |
Adds a 56-bit value to a File.
value | The value. |
- (void) write56ToWithLocation: | (int) | location | |
value: | (long long) | value | |
Adds a 56-bit value to a File.
location | The location to write to. |
value | The value. |
- (void) write64: | (long long) | value |
Adds a 64-bit value to a File.
value | The value. |
- (void) write64ToWithLocation: | (int) | location | |
value: | (long long) | value | |
Adds a 64-bit value to a File.
location | The location to write to. |
value | The value. |
- (void) write8: | (int) | value |
Adds an 8-bit value to a File.
value | The value. |
- (void) write8ToWithLocation: | (int) | location | |
value: | (int) | value | |
Adds an 8-bit value to a File.
location | The location to write to. |
value | The value. |
- (void) write: | (NSMutableData *) | value |
Adds a value to a File.
value | The value. |
- (void) write: | (NSMutableData *) | value | |
offset: | (int) | offset | |
length: | (int) | length | |
Adds a value to a File.
value | The value. |
offset | The offset. |
length | The length. |
- (void) writeOpaque16: | (NSMutableData *) | value |
Adds a 16-bit-length opaque value to a File.
value | The value. |
- (void) writeOpaque16ToWithLocation: | (int) | location | |
value: | (NSMutableData *) | value | |
Adds a 16-bit-length opaque value to a File.
location | The location to write to. |
value | The value. |
- (void) writeOpaque24: | (NSMutableData *) | value |
Adds a 24-bit-length opaque value to a File.
value | The value. |
- (void) writeOpaque24ToWithLocation: | (int) | location | |
value: | (NSMutableData *) | value | |
Adds a 24-bit-length opaque value to a File.
location | The location to write to. |
value | The value. |
- (void) writeOpaque32: | (NSMutableData *) | value |
Adds a 32-bit-length opaque value to a File.
value | The value. |
- (void) writeOpaque32ToWithLocation: | (int) | location | |
value: | (NSMutableData *) | value | |
Adds a 32-bit-length opaque value to a File.
location | The location to write to. |
value | The value. |
- (void) writeOpaque40: | (NSMutableData *) | value |
Adds a 40-bit-length opaque value to a File.
value | The value. |
- (void) writeOpaque40ToWithLocation: | (int) | location | |
value: | (NSMutableData *) | value | |
Adds a 40-bit-length opaque value to a File.
location | The location to write to. |
value | The value. |
- (void) writeOpaque48: | (NSMutableData *) | value |
Adds a 48-bit-length opaque value to a File.
value | The value. |
- (void) writeOpaque48ToWithLocation: | (int) | location | |
value: | (NSMutableData *) | value | |
Adds a 48-bit-length opaque value to a File.
location | The location to write to. |
value | The value. |
- (void) writeOpaque56: | (NSMutableData *) | value |
Adds a 56-bit-length opaque value to a File.
value | The value. |
- (void) writeOpaque56ToWithLocation: | (int) | location | |
value: | (NSMutableData *) | value | |
Adds a 56-bit-length opaque value to a File.
location | The location to write to. |
value | The value. |
- (void) writeOpaque64: | (NSMutableData *) | value |
Adds a 64-bit-length opaque value to a File.
value | The value. |
- (void) writeOpaque64ToWithLocation: | (int) | location | |
value: | (NSMutableData *) | value | |
Adds a 64-bit-length opaque value to a File.
location | The location to write to. |
value | The value. |
- (void) writeOpaque8: | (NSMutableData *) | value |
Adds an 8-bit-length opaque value to a File.
value | The value. |
- (void) writeOpaque8ToWithLocation: | (int) | location | |
value: | (NSMutableData *) | value | |
Adds an 8-bit-length opaque value to a File.
location | The location to write to. |
value | The value. |
- (void) writeToWithLocation: | (int) | location | |
value: | (NSMutableData *) | value | |
Adds a value to a File.
location | The location to write to. |
value | The value. |