Метод | Описание | |
---|---|---|
BeginRead ( |
Begins an asynchronous unbuffered read operation
|
|
BeginReadScatter ( |
Reads data from a file and stores it in an array of buffers
|
|
BeginWrite ( |
Begins an asynchronous unbuffered write operation
|
|
BeginWriteGather ( |
Retrieves data from an array of buffers and writes the data to a file.
|
|
OverlappedStreamUnbuffered ( string path, FileMode mode, FileAccess access, FileShare share, UnbufferedFileOptions options, FileAttributes attributes = FileAttributes.Normal ) : System |
Initializes a new instance of the OverlappedStreamUnbuffered class
|
Метод | Описание | |
---|---|---|
OverlappedStreamUnbuffered ( ) : System |
public BeginRead ( |
||
pBuffer | The unmanaged buffer to read the data into. /// Buffer should be aligned in memory to device sector size boundary. /// Buffer should not be deallocated or moved until operation is completed. | |
fileOffset | System.UInt64 | File pointer |
numberOfBytesToRead | The maximum number of bytes to read. | |
callback | AsyncCallback | An optional asynchronous callback, to be called when the read is complete. |
state | object | A user-provided object that distinguishes this particular asynchronous read request from other requests. |
Результат | IAsyncResult |
public BeginReadScatter ( |
||
segments | Array of pointers to data buffers.
/// Each buffer must be at least the size of a system memory page and must be aligned
/// on a system memory page size boundary |
|
fileOffset | System.UInt64 | File pointer |
callback | AsyncCallback | An optional asynchronous callback, to be called when the read is complete. |
state | object | A user-provided object that distinguishes this particular asynchronous read request from other requests. |
Результат | IAsyncResult |
public BeginWrite ( |
||
pBuffer | The unmanaged buffer to read the data from. /// Buffer should be aligned in memory to device sector size boundary. /// Buffer should not be deallocated or moved until operation is completed. | |
fileOffset | System.UInt64 | File pointer |
numberOfBytesToWrite | The maximum number of bytes to write. | |
callback | AsyncCallback | An optional asynchronous callback, to be called when the write is complete. |
state | object | A user-provided object that distinguishes this particular asynchronous write request from other requests. |
Результат | IAsyncResult |
public BeginWriteGather ( |
||
segments | Array of pointers to data buffers.
/// Each buffer must be at least the size of a system memory page and must be aligned
/// on a system memory page size boundary |
|
fileOffset | System.UInt64 | File pointer |
callback | AsyncCallback | An optional asynchronous callback, to be called when the write is complete. |
state | object | A user-provided object that distinguishes this particular asynchronous write request from other requests. |
Результат | IAsyncResult |
public OverlappedStreamUnbuffered ( string path, FileMode mode, FileAccess access, FileShare share, UnbufferedFileOptions options, FileAttributes attributes = FileAttributes.Normal ) : System | ||
path | string | A relative or absolute path for the file. UNC long path file names are supported. |
mode | FileMode | A constant that determines how to open or create the file. |
access | FileAccess | A constant that determines how the file can be accessed. |
share | FileShare | A constant that determines how the file will be shared by processes. |
options | UnbufferedFileOptions | A constant that specifies additional file options. |
attributes | FileAttributes | A constant that specifies file attributes which are set when file is created. |
Результат | System |