StreamContainer.Save

Save(Stream, int, long)

Saves (copies) the stream’s data to the specified stream.

public virtual void Save(Stream destinationStream, int bufferSize, long length)
ParameterTypeDescription
destinationStreamStreamThe stream to save the data to.
bufferSizeInt32The buffer size. By default ReadWriteBytesCount value is used.
lengthInt64The stream data length to copy. By default the length is set to Length value.

See Also


Save(Stream)

Saves (copies) the stream’s data to the specified stream. Uses default buffer size ReadWriteBytesCount and stream Length value.

public virtual void Save(Stream destinationStream)
ParameterTypeDescription
destinationStreamStreamThe stream to save the data to.

See Also


Save(Stream, int)

Saves (copies) all the stream’s data to the specified stream. Uses stream Length value.

public virtual void Save(Stream destinationStream, int bufferSize)
ParameterTypeDescription
destinationStreamStreamThe stream to save the data to.
bufferSizeInt32The buffer.

See Also


Save(string)

Saves (copies) the stream’s data to the specified stream. Uses default buffer size ReadWriteBytesCount and stream Length value.

public virtual void Save(string filePath)
ParameterTypeDescription
filePathStringThe file path to save the stream data to.

See Also


Save(string, int)

Saves (copies) the stream’s data to the specified stream. Uses stream Length value.

public virtual void Save(string filePath, int bufferSize)
ParameterTypeDescription
filePathStringThe file path to save the stream data to.
bufferSizeInt32The buffer size. By default ReadWriteBytesCount value is used.

See Also


Save(string, int, long)

Saves (copies) the stream’s data to the specified stream.

public virtual void Save(string filePath, int bufferSize, long length)
ParameterTypeDescription
filePathStringThe file path to save the stream data to.
bufferSizeInt32The buffer size. By default ReadWriteBytesCount value is used.
lengthInt64The stream data length to copy. By default the length is set to Length value.

See Also