public void Dispose() { Debug.WriteLine("Calling DataSeq_Free..."); if (IsValid) { DataSeq.Free(dataSeqHandle); } }
public double this[UInt32 i] { get { double v = 0.0; Validate(DataSeq.GetAt(dataSeqHandle, i, ref v)); return(v); } set { Validate(DataSeq.SetAt(dataSeqHandle, i, value)); } }
public double[] GetData() { UInt32 size = Size; if (size == 0) { return(null); } IntPtr unmanagedDataPtr = IntPtr.Zero; Validate(DataSeq.GetData(dataSeqHandle, ref unmanagedDataPtr)); double[] managedDataBuf = new double[Size]; Marshal.Copy(unmanagedDataPtr, managedDataBuf, 0, managedDataBuf.Length); return(managedDataBuf); }
public void PopBack() { double v = 0.0; Validate(DataSeq.PopBack(dataSeqHandle, ref v)); }
public void PushBack(double v) { Validate(DataSeq.PushBack(dataSeqHandle, v)); }
public DataSequence(UInt32 size = 0) { Validate(DataSeq.Create(ref dataSeqHandle, size), false); }