C# Class PRI.ProductivityExtensions.FileStreamExtensions.FileStreamable

Class that contains extension methods that extend FileStream
Datei anzeigen Open project: peteraritchie/ProductivityExtensions

Public Methods

Method Description
BeginRead ( this filestream, Byte array, AsyncCallback userCallback ) : IAsyncResult

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

BeginRead ( this filestream, Byte array, Int32 offset, Int32 numBytes, AsyncCallback userCallback ) : IAsyncResult

Extends BeginRead so that when a state object is not needed, null does not need to be passed. filestream.BeginRead(array, offset, numBytes, userCallback);

BeginWrite ( this filestream, Byte array, AsyncCallback userCallback ) : IAsyncResult

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

BeginWrite ( this filestream, Byte array, Int32 offset, Int32 numBytes, AsyncCallback userCallback ) : IAsyncResult

Extends BeginWrite so that when a state object is not needed, null does not need to be passed. filestream.BeginWrite(array, offset, numBytes, userCallback);

Method Details

BeginRead() public static method

Extends BeginRead so that buffer offset of 0 and call to Array.Length are not needed. filestream.BeginRead(array, userCallback);
public static BeginRead ( this filestream, Byte array, AsyncCallback userCallback ) : IAsyncResult
filestream this
array Byte
userCallback AsyncCallback
return IAsyncResult

BeginRead() public static method

Extends BeginRead so that when a state object is not needed, null does not need to be passed. filestream.BeginRead(array, offset, numBytes, userCallback);
public static BeginRead ( this filestream, Byte array, Int32 offset, Int32 numBytes, AsyncCallback userCallback ) : IAsyncResult
filestream this
array Byte
offset System.Int32
numBytes System.Int32
userCallback AsyncCallback
return IAsyncResult

BeginWrite() public static method

Extends BeginWrite so that buffer offset of 0 and call to Array.Length are not needed. filestream.BeginWrite(array, userCallback);
public static BeginWrite ( this filestream, Byte array, AsyncCallback userCallback ) : IAsyncResult
filestream this
array Byte
userCallback AsyncCallback
return IAsyncResult

BeginWrite() public static method

Extends BeginWrite so that when a state object is not needed, null does not need to be passed. filestream.BeginWrite(array, offset, numBytes, userCallback);
public static BeginWrite ( this filestream, Byte array, Int32 offset, Int32 numBytes, AsyncCallback userCallback ) : IAsyncResult
filestream this
array Byte
offset System.Int32
numBytes System.Int32
userCallback AsyncCallback
return IAsyncResult