Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Delegate StreamConsumer.StreamConsumerDelegate

Delegate type for the callback used by ConsumeToEnd.

Namespace: EPiServer.BaseLibrary.IO
Assembly: EPiServer.BaseLibrary.dll
Version: 7.19.2
Syntax
public delegate void StreamConsumerDelegate(byte[] buffer, int offset, int count);
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 offset
System.Int32 count

Constructors

StreamConsumerDelegate(Object, IntPtr)

Declaration
public StreamConsumerDelegate(object object, IntPtr method)
Parameters
Type Name Description
System.Object object
System.IntPtr method

Methods

BeginInvoke(Byte[], Int32, Int32, AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(byte[] buffer, int offset, int count, AsyncCallback callback, object object)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 offset
System.Int32 count
System.AsyncCallback callback
System.Object object
Returns
Type Description
System.IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual void EndInvoke(IAsyncResult result)
Parameters
Type Name Description
System.IAsyncResult result

Invoke(Byte[], Int32, Int32)

Declaration
public virtual void Invoke(byte[] buffer, int offset, int count)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 offset
System.Int32 count