ARTDataEncoder
Objective-C
@interface ARTDataEncoder : NSObject
Swift
class ARTDataEncoder : NSObject
ARTDataEncoder is used to:
- convert the
dataproperty of anARTMessageinto a format that’s suitable to be sent over the wire; that is, to ensure that thisARTMessagecan be placed inside anARTProtocolMessage - convert the
dataproperty of anARTMessagecontained inside anARTProtocolMessageinto something that’s suitable to expose to the user of the SDK
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithCipherParams:(ARTCipherParams *_Nullable)params logger:(ARTInternalLog *)logger error:(NSError *_Nullable*_Nullable)error;Swift
init(cipherParams params: ARTCipherParams?, logger: InternalLog, error: NSErrorPointer) -
Undocumented
Declaration
Objective-C
- (ARTDataEncoderOutput *)encode:(id _Nullable)data;Swift
func encode(_ data: Any?) -> ARTDataEncoderOutput -
Undocumented
Declaration
Objective-C
- (ARTDataEncoderOutput *)decode:(id _Nullable)data encoding:(NSString *_Nullable)encoding;Swift
func decode(_ data: Any?, encoding: String?) -> ARTDataEncoderOutput -
Undocumented
Declaration
Objective-C
- (ARTDataEncoderOutput *)decode:(id _Nullable)data identifier:(NSString *)identifier encoding:(NSString *_Nullable)encoding;Swift
func decode(_ data: Any?, identifier: String, encoding: String?) -> ARTDataEncoderOutput