public unsafe void Insert(int targetIndex, PrimitiveValue value) { PrimitiveValue *valuePtr = &value; NativeMethods.insert_primitive(this, (IntPtr)targetIndex, new IntPtr(valuePtr), out var nativeException); nativeException.ThrowIfNecessary(); }
public unsafe void Add(PrimitiveValue value) { PrimitiveValue *valuePtr = &value; NativeMethods.add_primitive(this, new IntPtr(valuePtr), out var nativeException); nativeException.ThrowIfNecessary(); }
public unsafe int Find(PrimitiveValue value) { PrimitiveValue *valuePtr = &value; var result = NativeMethods.find_primitive(this, new IntPtr(valuePtr), out var nativeException); nativeException.ThrowIfNecessary(); return((int)result); }