HttpWorkerRequest.SendResponseFromMemory Method

Definition

Adds the contents of a memory block to the response.

Overloads

SendResponseFromMemory(Byte[], Int32)

Adds the specified number of bytes from a byte array to the response.

SendResponseFromMemory(IntPtr, Int32)

Adds the specified number of bytes from a block of memory to the response.

SendResponseFromMemory(Byte[], Int32)

Adds the specified number of bytes from a byte array to the response.

public:
 abstract void SendResponseFromMemory(cli::array <System::Byte> ^ data, int length);
public abstract void SendResponseFromMemory (byte[] data, int length);
abstract member SendResponseFromMemory : byte[] * int -> unit
Public MustOverride Sub SendResponseFromMemory (data As Byte(), length As Integer)

Parameters

data
Byte[]

The byte array to send.

length
Int32

The number of bytes to send, starting at the first byte.

SendResponseFromMemory(IntPtr, Int32)

Adds the specified number of bytes from a block of memory to the response.

public:
 virtual void SendResponseFromMemory(IntPtr data, int length);
public virtual void SendResponseFromMemory (IntPtr data, int length);
abstract member SendResponseFromMemory : nativeint * int -> unit
override this.SendResponseFromMemory : nativeint * int -> unit
Public Overridable Sub SendResponseFromMemory (data As IntPtr, length As Integer)

Parameters

data
IntPtr

An unmanaged pointer to the block of memory.

length
Int32

The number of bytes to send.

Applies to