Table of Contents

Class ChunkedUploadWrapperStream

Namespace
Amazon.Runtime.Internal.Util
Assembly
AWSSDK.Core.dll

Stream wrapper that double-buffers from a wrapped stream and returns the buffered content as a series of signed 'chunks' for the AWS4 ('Signature V4') protocol.

public class ChunkedUploadWrapperStream : WrapperStream, IDisposable, IAsyncDisposable
Inheritance
ChunkedUploadWrapperStream
Implements
Inherited Members

Fields

DefaultChunkSize

public static readonly int DefaultChunkSize

Field Value

int

Properties

CanSeek

Gets a value indicating whether the current stream supports seeking. True if the stream supports seeking; otherwise, false.

public override bool CanSeek { get; }

Property Value

bool

Length

Length override to return the true length of the payload plus the metainfo supplied with each chunk

public override long Length { get; }

Property Value

long

Methods

ComputeChunkedContentLength(long)

Computes the total size of the data payload, including the chunk metadata. Called externally so as to be able to set the correct Content-Length header value.

public static long ComputeChunkedContentLength(long originalLength)

Parameters

originalLength long

Returns

long

Read(byte[], int, int)

Reads some or all of the processed chunk to the consumer, constructing and streaming a new chunk if more input data is available.

public override int Read(byte[] buffer, int offset, int count)

Parameters

buffer byte[]
offset int
count int

Returns

int