Ejemplo n.º 1
0
        internal LinkListHandle TableLinkList(IntPtr propertyIndex)
        {
            var listHandle = new LinkListHandle(Root ?? this);

            // At this point sh is invalid due to its handle being uninitialized, but the root is set correctly
            // a finalize at this point will not leak anything and the handle will not do anything

            // now, set the TableView handle...
            RuntimeHelpers.PrepareConstrainedRegions(); // the following finally will run with no out-of-band exceptions
            try
            {
            }
            finally
            {
                listHandle.SetHandle(this.GetLinklist(propertyIndex));
            } // at this point we have atomically acquired a handle and also set the root correctly so it can be unbound correctly

            return(listHandle);
        }
Ejemplo n.º 2
0
 public static extern IntPtr get(LinkListHandle linklistHandle, SharedRealmHandle realmHandle, IntPtr link_ndx, out NativeException ex);
Ejemplo n.º 3
0
 public static extern void clear(LinkListHandle linklistHandle, out NativeException ex);
Ejemplo n.º 4
0
 public static extern void erase(LinkListHandle linklistHandle, IntPtr rowIndex, out NativeException ex);
Ejemplo n.º 5
0
 public static extern void insert(LinkListHandle linklistHandle, IntPtr targetIndex, ObjectHandle objectHandle, out NativeException ex);
Ejemplo n.º 6
0
 public static extern void add(LinkListHandle linklistHandle, ObjectHandle objectHandle, out NativeException ex);
Ejemplo n.º 7
0
 public static extern void insert(LinkListHandle linklistHandle, IntPtr link_ndx, IntPtr row_ndx, out NativeException ex);
Ejemplo n.º 8
0
 public static extern void insert(LinkListHandle linklistHandle, IntPtr link_ndx, IntPtr row_ndx);
Ejemplo n.º 9
0
 internal RealmList(RealmObject parent, LinkListHandle adoptedList)
 {
     _parent     = parent;
     _listHandle = adoptedList;
 }
Ejemplo n.º 10
0
 public static extern IntPtr size(LinkListHandle linklistHandle);
Ejemplo n.º 11
0
 public static extern IntPtr find(LinkListHandle linklistHandle, IntPtr link_ndx, IntPtr start_from);
Ejemplo n.º 12
0
 public static extern IntPtr get(LinkListHandle linklistHandle, IntPtr link_ndx);
Ejemplo n.º 13
0
 public static extern void clear(LinkListHandle linklistHandle);
Ejemplo n.º 14
0
 public static extern void erase(LinkListHandle linklistHandle, IntPtr row_ndx);
Ejemplo n.º 15
0
 public static extern IntPtr find(LinkListHandle linklistHandle, ObjectHandle objectHandle, IntPtr start_from, out NativeException ex);
Ejemplo n.º 16
0
 public static extern IntPtr size(LinkListHandle linklistHandle, out NativeException ex);
Ejemplo n.º 17
0
 internal RealmList(Realm realm, LinkListHandle adoptedList, RealmObject.Metadata metadata)
 {
     _realm          = realm;
     _listHandle     = adoptedList;
     _targetMetadata = metadata;
 }