Set TemplateIndex to decode the stream at position TemplateIndex to Template property.
When the stream is decoded, a list of objects is created. Before the new stream is decoded, the data in Template property is encoded and stored to the Templates.
TStreamTemplates Properties