C# Class System.IO.WinRTFileStream

Inheritance: System.IO.FileStreamBase
显示文件 Open project: dotnet/corefx

Private Properties

Property Type Description
WinRTFileStream Microsoft.Win32.SafeHandles

Public Methods

Method Description
CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
Flush ( ) : void
Flush ( bool flushToDisk ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
Lock ( long position, long length ) : void
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
ToString ( ) : string
Unlock ( long position, long length ) : void
Write ( byte buffer, int offset, int count ) : void
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteByte ( byte value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
WinRTFileStream ( Stream innerStream, StorageFile file, FileAccess access, FileOptions options, FileStream parent ) : Microsoft.Win32.SafeHandles

Method Details

CopyToAsync() public method

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
destination Stream
bufferSize int
cancellationToken CancellationToken
return Task

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

Flush() public method

public Flush ( bool flushToDisk ) : void
flushToDisk bool
return void

FlushAsync() public method

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
return Task

Lock() public method

public Lock ( long position, long length ) : void
position long
length long
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadAsync() public method

public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken CancellationToken
return Task

ReadByte() public method

public ReadByte ( ) : int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

ToString() public method

public ToString ( ) : string
return string

Unlock() public method

public Unlock ( long position, long length ) : void
position long
length long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

WriteAsync() public method

public WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken CancellationToken
return Task

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void