C# Класс PRI.ProductivityExtensions.NetworkStreamExtensions.NetworkStreamable

Class that contains extension methods that extend NetworkStream
Показать файл Открыть проект

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

Метод Описание
BeginRead ( this networkstream, Byte buffer, AsyncCallback callback ) : IAsyncResult

Extends BeginRead so that buffer offset of 0 and call to Array.Length are not needed. networkstream.BeginRead(buffer, callback);

BeginRead ( this networkstream, Byte buffer, Int32 offset, Int32 size, AsyncCallback callback ) : IAsyncResult

Extends BeginRead so that when a state object is not needed, null does not need to be passed. networkstream.BeginRead(buffer, offset, size, callback);

BeginWrite ( this networkstream, Byte buffer, AsyncCallback callback ) : IAsyncResult

Extends BeginWrite so that buffer offset of 0 and call to Array.Length are not needed. networkstream.BeginWrite(buffer, callback);

BeginWrite ( this networkstream, Byte buffer, Int32 offset, Int32 size, AsyncCallback callback ) : IAsyncResult

Extends BeginWrite so that when a state object is not needed, null does not need to be passed. networkstream.BeginWrite(buffer, offset, size, callback);

Описание методов

BeginRead() публичный статический Метод

Extends BeginRead so that buffer offset of 0 and call to Array.Length are not needed. networkstream.BeginRead(buffer, callback);
public static BeginRead ( this networkstream, Byte buffer, AsyncCallback callback ) : IAsyncResult
networkstream this
buffer Byte
callback AsyncCallback
Результат IAsyncResult

BeginRead() публичный статический Метод

Extends BeginRead so that when a state object is not needed, null does not need to be passed. networkstream.BeginRead(buffer, offset, size, callback);
public static BeginRead ( this networkstream, Byte buffer, Int32 offset, Int32 size, AsyncCallback callback ) : IAsyncResult
networkstream this
buffer Byte
offset System.Int32
size System.Int32
callback AsyncCallback
Результат IAsyncResult

BeginWrite() публичный статический Метод

Extends BeginWrite so that buffer offset of 0 and call to Array.Length are not needed. networkstream.BeginWrite(buffer, callback);
public static BeginWrite ( this networkstream, Byte buffer, AsyncCallback callback ) : IAsyncResult
networkstream this
buffer Byte
callback AsyncCallback
Результат IAsyncResult

BeginWrite() публичный статический Метод

Extends BeginWrite so that when a state object is not needed, null does not need to be passed. networkstream.BeginWrite(buffer, offset, size, callback);
public static BeginWrite ( this networkstream, Byte buffer, Int32 offset, Int32 size, AsyncCallback callback ) : IAsyncResult
networkstream this
buffer Byte
offset System.Int32
size System.Int32
callback AsyncCallback
Результат IAsyncResult