C# Class System.IO.StreamOperationsImplementation

Depending on the concrete type of the stream managed by a NetFxToWinRtStreamAdapter, we want the ReadAsync / WriteAsync / FlushAsync / etc. operation to be implemented differently. This is for best performance as we can take advantage of the specifics of particular stream types. For instance, ReadAsync currently has a special implementation for memory streams. Moreover, knowledge about the actual runtime type of the IBuffer can also help chosing the optimal implementation. This type provides static methods that encapsulate the performance logic and can be used by NetFxToWinRtStreamAdapter.
ファイルを表示 Open project: dotnet/corefx Class Usage Examples

Private Methods

Method Description
FlushAsync_AbstractStream ( Stream stream ) : IAsyncOperation
ReadAsync_AbstractStream ( Stream stream, Windows.Storage.Streams.IBuffer buffer, UInt32 count, InputStreamOptions options ) : UInt32>.IAsyncOperationWithProgress
ReadAsync_MemoryStream ( Stream stream, Windows.Storage.Streams.IBuffer buffer, UInt32 count ) : UInt32>.IAsyncOperationWithProgress
WriteAsync_AbstractStream ( Stream stream, Windows.Storage.Streams.IBuffer buffer ) : UInt32>.IAsyncOperationWithProgress