public bool Write(DAIIO io, bool skiplength = false)
        {
            try
            {
                if (!skiplength)
                {
                    io.WriteBits(Length, LengthBits);
                }
                io.WriteInt32(Id);
                io.WriteInt16(CallbackCount);
                if (Callbacks == null)
                {
                    Callbacks = new CallBackData[CallbackCount];

                    for (int xb = 0; xb < CallbackCount; xb++)
                    {
                        Callbacks[xb] = new CallBackData();
                    }
                }
                for (int i = 0; i < CallbackCount; i++)
                {
                    Callbacks[i].Write(io);
                }

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
 public OwnerInfo Read(DAIIO io)
 {
     xLength       = io.ReadBit2(LengthBits);
     Id            = io.ReadInt32();
     CallbackCount = io.ReadInt16();
     Callbacks     = new CallBackData[CallbackCount];
     for (int i = 0; i < CallbackCount; i++)
     {
         Callbacks[i] = new CallBackData().Read(io);
     }
     return(this);
 }