UTF-8 encoding/decoding utility. More...
Instance Methods | |
| (instancetype) | - init |
Class Methods | |
| (NSString *) | + decodeWithBuffer: |
| Decodes a UTF-8 data buffer to a string. More... | |
| (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... | |
| (FMLiveSwitchUtf8 *) | + utf8 |
UTF-8 encoding/decoding utility.
| + (NSString*) decodeWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
Decodes a UTF-8 data buffer to a string.
| buffer | The input byte array. |
| + (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 |
| + (FMLiveSwitchUtf8*) utf8 |