Property | Type | Description | |
---|---|---|---|
DefaultChunkSize | int |
Property | Type | Description | |
---|---|---|---|
CalculateChunkHeaderLength | long | ||
ChunkedUploadWrapperStream | System | ||
ConstructOutputBufferChunk | void | ||
FillInputBuffer | int |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
CalculateChunkHeaderLength ( long chunkDataSize ) : long |
Computes the size of the header data for each chunk.
|
|
ChunkedUploadWrapperStream ( Stream stream, int wrappedStreamBufferSize, |
||
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
|
public static ComputeChunkedContentLength ( long originalLength ) : long | ||
originalLength | long | |
return | long |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | |
offset | int | |
count | int | |
return | int |