Exemplo n.º 1
0
        public void insert(POITextComment text)
        {
            texts.Add(text);
            numText++;

            size += text.Size;
        }
Exemplo n.º 2
0
        public override void deserialize(byte[] buffer, ref int offset)
        {
            size = fieldSize + MetadataSize;
            //size = fieldSize;

            base.deserialize(buffer, ref offset);
            deserializeInt32(buffer, ref offset, ref frameNum);
            deserializeInt32(buffer, ref offset, ref numBeizerPath);
            deserializeInt32(buffer, ref offset, ref numText);

            paths = new List<POIBeizerPath>();
            for (int i = 0; i < numBeizerPath; i++)
            {
                POIBeizerPath path = new POIBeizerPath();
                path.deserialize(buffer, ref offset);
                paths.Add(path);

                size += path.Size;
            }

            texts = new List<POITextComment>();
            for (int i = 0; i < numText; i++)
            {
                POITextComment text = new POITextComment();
                text.deserialize(buffer, ref offset);
                texts.Add(text);

                size += text.Size;
            }

            //Console.WriteLine("Size is " + size);
        }