コード例 #1
0
 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();
 }
コード例 #2
0
 public void Add(TLObject obj)
 {
     td_bridge_vector_object_emplace_back(ptr, TLObjectFactory.CreateCxxObject(obj));
 }