C# 클래스 Amazon.Runtime.Internal.Util.ChunkedUploadWrapperStream

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.
상속: WrapperStream
파일 보기 프로젝트 열기: aws/aws-sdk-net

공개 프로퍼티들

프로퍼티 타입 설명
DefaultChunkSize int

Private Properties

프로퍼티 타입 설명
CalculateChunkHeaderLength long
ChunkedUploadWrapperStream System
ConstructOutputBufferChunk void
FillInputBuffer int

공개 메소드들

메소드 설명
ComputeChunkedContentLength ( long originalLength ) : 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.

Read ( byte buffer, int offset, int count ) : int

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

비공개 메소드들

메소드 설명
CalculateChunkHeaderLength ( long chunkDataSize ) : long

Computes the size of the header data for each chunk.

ChunkedUploadWrapperStream ( Stream stream, int wrappedStreamBufferSize, AWS4SigningResult headerSigningResult ) : System
ConstructOutputBufferChunk ( int dataLen ) : void

Computes the derived signature for a chunk of data of given length in the input buffer, placing a formatted chunk with headers, signature and data into the output buffer ready for streaming back to the consumer.

FillInputBuffer ( ) : int

Attempt to read sufficient data for a whole chunk from the wrapped stream, returning the number of bytes successfully read to be processed into a chunk

메소드 상세

ComputeChunkedContentLength() 공개 정적인 메소드

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 ComputeChunkedContentLength ( long originalLength ) : long
originalLength long
리턴 long

Read() 공개 메소드

Reads some or all of the processed chunk to the consumer, constructing and streaming a new chunk if more input data is available.
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int

프로퍼티 상세

DefaultChunkSize 공개적으로 정적으로 프로퍼티

public static int DefaultChunkSize
리턴 int