C# Класс GS.Common.IO.OverlappedStreamBuffered

Overlapped Buffered file operations
Наследование: OverlappedStream
Показать файл Открыть проект

Открытые методы

Метод Описание
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