ARTVCDiffDecoder

Objective-C

@protocol ARTVCDiffDecoder

Swift

protocol ARTVCDiffDecoder

Enables vcdiff encoded messages to be decoded.

  • Decodes vcdiff encoded messages.

    Declaration

    Objective-C

    - (nullable NSData *)decode:(nonnull NSData *)delta
                           base:(nonnull NSData *)base
                          error:(NSError *_Nullable *_Nullable)errorPtr;

    Swift

    func decode(_ delta: Data, base: Data) throws -> Data

    Parameters

    delta

    The delta encoded data.

    base

    The stored base payload of the last message on a channel.

    errorPtr

    A reference to the NSError object where an error information will be saved in case of failure.

    Return Value

    The decoded data.