EMMspParser
Objective-C
@protocol EMMspParser <NSObject>
Swift
protocol EMMspParser : NSObjectProtocol
Msp parser protocol
Since
4.5-
Retrieving the Msp frame from data
Since
4.5
Declaration
Objective-C
- (id<EMMspFrame>)parse:(id<EMSecureByteArray>)data error:(NSError **)nsError;Swift
func parse(_ data: (any EMSecureByteArray)!) throws -> any EMMspFrameParameters
dataSecure Data containing a Msp frame to decode
nsErrorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in nil.
Return Value
An object following the Msp frame protocol, nil if an error occurs.
-
Retrieving a Msp Data from data
Since
4.5
Declaration
Objective-C
- (id<EMMspData>)parseMspData:(id<EMMspFrame>)frame error:(NSError **)nsError;Swift
func parseMspData(_ frame: (any EMMspFrame)!) throws -> any EMMspDataParameters
frametarget msp frame to parse
nsErrorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in nil.
Return Value
An object following the Msp data protocol, nil if an error occurs.
EMMspParser Protocol Reference