Serializes an object.

C# | Visual Basic | Managed C++ |
void SerializeTo ( ref ConsumableBlock header, ref IList<Block> data )
Sub SerializeTo ( _ ByRef header As ConsumableBlock, _ ByRef data As IList(Of Block) _ )
void SerializeTo ( ConsumableBlock% header, IList<Block>^% data )

- header (ConsumableBlock)
- Points to the preallocated header. Data can be appended to the header by copying it.
- data (IList<(Of Block>))
- Points to a list of memory buffers. Data can be appended by adding buffer addresses to the list.