Κοινή χρήση μέσω


PayloadDisassembler.Serialize<T>(T, MemoryStream, Int32) Method

Definition

Serializes the item into the MemoryStream and exposes the length of the result.

protected static void Serialize<T> (T item, out System.IO.MemoryStream stream, out int length);
static member Serialize : 'T * MemoryStream * int -> unit
Protected Shared Sub Serialize(Of T) (item As T, ByRef stream As MemoryStream, ByRef length As Integer)

Type Parameters

T

The type of the item to be serialized.

Parameters

item
T

The item to be serialized.

stream
MemoryStream

The MemoryStream to write the serialized data to.

length
Int32

The length of the MemoryStream after the item has been serialized and the resulting data has been written to the stream.

Applies to