C# Class System.IO.Compression.Tests.ManualSyncMemoryStream

Inheritance: MemoryStream
Mostra file Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
ReadHit bool
WriteHit bool
manualResetEvent System.Threading.ManualResetEventSlim

Public Methods

Method Description
GetStreamFromFileAsync ( string testFile, bool sync = false, bool strip = false ) : Task
ManualSyncMemoryStream ( bool sync = false ) : System.Collections.Generic
ReadAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
WriteAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task

Method Details

GetStreamFromFileAsync() public static method

public static GetStreamFromFileAsync ( string testFile, bool sync = false, bool strip = false ) : Task
testFile string
sync bool
strip bool
return Task

ManualSyncMemoryStream() public method

public ManualSyncMemoryStream ( bool sync = false ) : System.Collections.Generic
sync bool
return System.Collections.Generic

ReadAsync() public method

public ReadAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
array byte
offset int
count int
cancellationToken System.Threading.CancellationToken
return Task

WriteAsync() public method

public WriteAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
array byte
offset int
count int
cancellationToken System.Threading.CancellationToken
return Task

Property Details

ReadHit public_oe property

public bool ReadHit
return bool

WriteHit public_oe property

public bool WriteHit
return bool

manualResetEvent public_oe property

public ManualResetEventSlim,System.Threading manualResetEvent
return System.Threading.ManualResetEventSlim