public void Set(T obj) { td_bridge_object_ptr_reset(ptr, TLObjectFactory.CreateCxxObject(obj)); //var oldobj = *(IntPtr*)ptr; //if (oldobj != IntPtr.Zero) // CxxAbi.FreeCxxTLObject(oldobj); //*(IntPtr*)ptr = obj == null ? IntPtr.Zero : obj.TdCreateCxxObject(); }
public void Add(TLObject obj) { td_bridge_vector_object_emplace_back(ptr, TLObjectFactory.CreateCxxObject(obj)); }