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.

C#
public abstract void SendResponseFromMemory(byte[] data, int length);

Parameters

data
Byte[]

The byte array to send.

length
Int32

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

Applies to

.NET Framework 4.8.1 및 기타 버전
제품 버전
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

SendResponseFromMemory(IntPtr, Int32)

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

C#
public virtual void SendResponseFromMemory(IntPtr data, int length);

Parameters

data
IntPtr

An unmanaged pointer to the block of memory.

length
Int32

The number of bytes to send.

Applies to

.NET Framework 4.8.1 및 기타 버전
제품 버전
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1