public bool Write(DAIIO io, bool skiplength = false)
        {
            try
            {
                if (!skiplength)
                {
                    io.WriteBits(Length, LengthBits);
                }
                io.WriteInt16(OwnerInfoCount);
                if (OwnerInfos == null)
                {
                    OwnerInfos = new OwnerInfo[OwnerInfoCount];

                    for (int xb = 0; xb < OwnerInfoCount; xb++)
                    {
                        OwnerInfos[xb] = new OwnerInfo(SStructure);
                    }
                }
                for (int i = 0; i < OwnerInfoCount; i++)
                {
                    OwnerInfos[i].Write(io);
                }

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
 public PartDestructionComplex Read(DAIIO io)
 {
     xLength        = io.ReadBit2(LengthBits);
     OwnerInfoCount = io.ReadInt16();
     OwnerInfos     = new OwnerInfo[OwnerInfoCount];
     for (int i = 0; i < OwnerInfoCount; i++)
     {
         OwnerInfos[i] = new OwnerInfo(SStructure).Read(io);
     }
     return(this);
 }