PayloadDisassembler.Serialize<T>(T, MemoryStream, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.