ASCII encoding/decoding utility. More...
Instance Methods | |
(instancetype) | - init |
Class Methods | |
(FMLiveSwitchAscii *) | + ascii |
(NSString *) | + decodeWithInput: |
Decodes a UTF-8 byte array to a string. More... | |
(NSString *) | + decodeWithInput:index:length: |
Decodes a UTF-8 byte array to a string. More... | |
(NSMutableData *) | + encodeWithInput: |
Encodes a string to a UTF-8 byte array. More... | |
(int) | + getByteCountWithInput: |
Gets the number of bytes that would be returned by a call to encode. More... | |
ASCII encoding/decoding utility.
+ (FMLiveSwitchAscii*) ascii |
+ (NSString*) decodeWithInput: | (NSMutableData *) | input |
Decodes a UTF-8 byte array to a string.
input | The input byte array. |
+ (NSString*) decodeWithInput: | (NSMutableData *) | input | |
index: | (int) | index | |
length: | (int) | length | |
Decodes a UTF-8 byte array to a string.
input | The input byte array. |
index | The index to start reading. |
length | The length. |
+ (NSMutableData*) encodeWithInput: | (NSString *) | input |
Encodes a string to a UTF-8 byte array.
input | The input string. |
+ (int) getByteCountWithInput: | (NSString *) | input |
Gets the number of bytes that would be returned by a call to encode.
input | The input string. |
- (instancetype) init |