SDLGetFileResponse Class Reference

Section Contents

Overview

Response to GetFiles

@since RPC 5.1

-initWithOffset:length:fileType:crc:

Convenience init for all parameters.

Objective-C

- (nonnull instancetype)initWithOffset:(UInt32)offset
                                length:(UInt32)length
                              fileType:(nullable SDLFileType)fileType
                                   crc:(UInt32)crc;

Swift

init(offset: UInt32, length: UInt32, fileType: SDLFileType?, crc: UInt32)

Parameters

offset

Optional offset in bytes for resuming partial data chunks

length

Optional length in bytes for resuming partial data chunks. If offset is set to 0, then length is the total length of the file to be downloaded

fileType

File type that is being sent in response

crc

Additional CRC32 checksum to protect data integrity up to 512 Mbits

Return Value

A SDLGetFileResponse object

offset

Optional offset in bytes for resuming partial data chunks.

Integer, Optional, minvalue=“0” maxvalue=“2000000000”

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLUInt> *offset;

Swift

var offset: (NSNumber & SDLUInt)? { get set }

length

Optional length in bytes for resuming partial data chunks. If offset is set to 0, then length is the total length of the file to be downloaded.

Integer, Optional, minvalue=“0” maxvalue=“2000000000”

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLUInt> *length;

Swift

var length: (NSNumber & SDLUInt)? { get set }

fileType

File type that is being sent in response.

SDLFileType, Optional

Objective-C

@property (nonatomic, strong, nullable) SDLFileType fileType;

Swift

var fileType: SDLFileType? { get set }

crc

Additional CRC32 checksum to protect data integrity up to 512 Mbits.

Integer, Optional, minvalue=“0” maxvalue=“4294967295”

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLUInt> *crc;

Swift

var crc: (NSNumber & SDLUInt)? { get set }