HeaderSerializer.Serialize(Header, Byte[], 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 passed in header into the passed in byte array.
public static int Serialize (Microsoft.Bot.Streaming.Payloads.Header header, byte[] buffer, int offset);
static member Serialize : Microsoft.Bot.Streaming.Payloads.Header * byte[] * int -> int
Public Shared Function Serialize (header As Header, buffer As Byte(), offset As Integer) As Integer
Parameters
- buffer
- Byte[]
The byte array to store the serialized header in.
- offset
- Int32
Deprecated offset used to begin writing to the buffer at a location other than 0.
Returns
An int representing the maximum supported header length.