C# 클래스 GS.Common.IO.OverlappedStreamUnbuffered

Overlapped Unbuffered file operations
상속: OverlappedStream
파일 보기 프로젝트 열기: Gainedge/BetterExplorer

공개 메소드들

메소드 설명
BeginRead ( IntPtr pBuffer, System.UInt64 fileOffset, UInt32 numberOfBytesToRead, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous unbuffered read operation

BeginReadScatter ( IntPtr segments, System.UInt64 fileOffset, AsyncCallback callback, object state ) : IAsyncResult

Reads data from a file and stores it in an array of buffers

BeginWrite ( IntPtr pBuffer, System.UInt64 fileOffset, UInt32 numberOfBytesToWrite, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous unbuffered write operation

BeginWriteGather ( IntPtr segments, System.UInt64 fileOffset, AsyncCallback callback, object state ) : IAsyncResult

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

메소드 상세

BeginRead() 공개 메소드

Begins an asynchronous unbuffered read operation
public BeginRead ( IntPtr pBuffer, System.UInt64 fileOffset, UInt32 numberOfBytesToRead, AsyncCallback callback, object state ) : IAsyncResult
pBuffer System.IntPtr 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 System.UInt32 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

BeginReadScatter() 공개 메소드

Reads data from a file and stores it in an array of buffers
public BeginReadScatter ( IntPtr segments, System.UInt64 fileOffset, AsyncCallback callback, object state ) : IAsyncResult
segments System.IntPtr 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 . /// The system reads one system memory page of data into each buffer. /// Buffers should not be deallocated or moved until operation is completed.
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

BeginWrite() 공개 메소드

Begins an asynchronous unbuffered write operation
public BeginWrite ( IntPtr pBuffer, System.UInt64 fileOffset, UInt32 numberOfBytesToWrite, AsyncCallback callback, object state ) : IAsyncResult
pBuffer System.IntPtr 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 System.UInt32 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

BeginWriteGather() 공개 메소드

Retrieves data from an array of buffers and writes the data to a file.
public BeginWriteGather ( IntPtr segments, System.UInt64 fileOffset, AsyncCallback callback, object state ) : IAsyncResult
segments System.IntPtr 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 . /// The system writes one system memory page of data into each buffer. /// Buffers should not be deallocated or moved until operation is completed.
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

OverlappedStreamUnbuffered() 공개 메소드

Initializes a new instance of the OverlappedStreamUnbuffered class
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