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 EMMspFrame

    Parameters

    data

    Secure Data containing a Msp frame to decode

    nsError

    If 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 EMMspData

    Parameters

    frame

    target msp frame to parse

    nsError

    If 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.