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

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

공개 메소드들

메소드 설명
BeginRead ( byte buffer, long fileOffset, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous read operation

BeginWrite ( byte buffer, long fileOffset, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous write operation

OverlappedStreamBuffered ( string path, FileMode mode, FileAccess access, FileShare share, BufferedFileOptions options, FileAttributes attributes = FileAttributes.Normal ) : System

Initializes a new instance of the OverlappedStreamBuffered class

메소드 상세

BeginRead() 공개 메소드

Begins an asynchronous read operation
public BeginRead ( byte buffer, long fileOffset, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte The buffer to read the data into.
fileOffset long File pointer
offset int The byte offset in buffer at which to begin writing.
count int 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

BeginWrite() 공개 메소드

Begins an asynchronous write operation
public BeginWrite ( byte buffer, long fileOffset, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte The buffer with data to write.
fileOffset long File pointer
offset int The byte offset in buffer at which to begin reading.
count int 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

OverlappedStreamBuffered() 공개 메소드

Initializes a new instance of the OverlappedStreamBuffered class
public OverlappedStreamBuffered ( string path, FileMode mode, FileAccess access, FileShare share, BufferedFileOptions 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 BufferedFileOptions A constant that specifies additional file options.
attributes FileAttributes A constant that specifies file attributes which are set when file is created.
리턴 System