StreamContainer.Save

Save(Stream, int, long)

将流的数据保存(复制)到指定的流。

public virtual void Save(Stream destinationStream, int bufferSize, long length)
参数类型描述
destinationStreamStream用于保存数据的流。
bufferSizeInt32缓冲区大小。默认使用 ReadWriteBytesCount 的值。
lengthInt64要复制的流数据长度。默认情况下,长度设置为 Length 的值。

另请参见


Save(Stream)

保存(复制)流的数据到指定的流。使用默认缓冲区大小 ReadWriteBytesCount 和流的 Length 值。

public virtual void Save(Stream destinationStream)
参数类型描述
destinationStreamStream用于保存数据的流。

另请参见


Save(Stream, int)

保存(复制)所有流的数据到指定的流。使用流的 Length 值。

public virtual void Save(Stream destinationStream, int bufferSize)
参数类型描述
destinationStreamStream用于保存数据的流。
bufferSizeInt32缓冲区。

另请参见


Save(string)

保存(复制)流的数据到指定的流。使用默认缓冲区大小 ReadWriteBytesCount 和流的 Length 值。

public virtual void Save(string filePath)
参数类型描述
filePathString用于保存流数据的文件路径。

另请参见


Save(string, int)

保存(复制)流的数据到指定的流。使用流的 Length 值。

public virtual void Save(string filePath, int bufferSize)
参数类型描述
filePathString用于保存流数据的文件路径。
bufferSizeInt32缓冲区大小。默认使用 ReadWriteBytesCount 的值。

另请参见


Save(string, int, long)

将流的数据保存(复制)到指定的流。

public virtual void Save(string filePath, int bufferSize, long length)
参数类型描述
filePathString用于保存流数据的文件路径。
bufferSizeInt32缓冲区大小。默认使用 ReadWriteBytesCount 的值。
lengthInt64要复制的流数据长度。默认情况下,长度设置为 Length 的值。

另请参见