Example #1
0
        public override void Decode()
        {
            MemoryStream stream = new MemoryStream(Data);
            BinaryReader reader = new BinaryReader(stream);

            Properties.Clear();
            for (int index = 0; index < this.Instance; index++)
            {
                Properties.Add(ShapeProperty.Decode(reader));
            }

            foreach (ShapeProperty property in Properties)
            {
                if (property.IsComplex)
                {
                    int size = (int)property.PropertyValue;
                    property.ComplexData = reader.ReadBytes(size);
                }
            }
        }