AWSS3ChunkedEncodingInputStream

Objective-C

@interface AWSS3ChunkedEncodingInputStream : NSInputStream <NSStreamDelegate>

Swift

class AWSS3ChunkedEncodingInputStream : InputStream, StreamDelegate

A subclass of NSInputStream that wraps an input stream and adds signature of chunk data.

  • Undocumented

    Declaration

    Objective-C

    @property int64_t totalLengthOfChunkSignatureSent

    Swift

    var totalLengthOfChunkSignatureSent: Int64 { get set }
  • Initialize the input stream with date, scope, signing key and signature of request headers.

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithInputStream:(NSInputStream *_Nonnull)stream
                                            date:(NSDate *_Nullable)date
                                           scope:(NSString *_Nullable)scope
                                        kSigning:(NSData *_Nullable)kSigning
                                 headerSignature:
                                     (NSString *_Nullable)headerSignature;

    Swift

    init(inputStream stream: InputStream, date: Date?, scope: String?, kSigning: Data?, headerSignature: String?)
  • Computes new content length after data being chunked encoded.

    Declaration

    Objective-C

    + (NSUInteger)computeContentLengthForChunkedData:(NSUInteger)dataLength;

    Swift

    class func computeContentLength(forChunkedData dataLength: UInt) -> UInt