public Anchor3dVectorPacket(Anchor3d[] value) : base() { UnsafeNativeMethods.mp__MakeAnchor3dVectorPacket__PA_i(value, value.Length, out var ptr).Assert(); this.ptr = ptr; }
public ImageFrame(ImageFormat.Format format, int width, int height, uint alignmentBoundary) : base() { UnsafeNativeMethods.mp_ImageFrame__ui_i_i_ui(format, width, height, alignmentBoundary, out var ptr).Assert(); this.ptr = ptr; }
protected override void DeleteMpPtr() { UnsafeNativeMethods.mp_ImageFrame__delete(ptr); }
public void SetToZero() { UnsafeNativeMethods.mp_ImageFrame__SetToZero(mpPtr).Assert(); GC.KeepAlive(this); }
public void SetAlignmentPaddingAreas() { UnsafeNativeMethods.mp_ImageFrame__SetAlignmentPaddingAreas(mpPtr).Assert(); GC.KeepAlive(this); }
public Timestamp(long value) : base() { UnsafeNativeMethods.mp_Timestamp__l(value, out var ptr).Assert(); this.ptr = ptr; }
public override GpuBuffer GetValue() { return(new GpuBuffer(UnsafeNativeMethods.MpPacketGetGpuBuffer(ptr), false)); }
public void Cancel() { UnsafeNativeMethods.mp_CalculatorGraph__Cancel(mpPtr).Assert(); GC.KeepAlive(this); }
protected override void DeleteMpPtr() { UnsafeNativeMethods.mp_CalculatorGraph__delete(ptr); }
public StringPacket(string value, Timestamp timestamp) : base() { UnsafeNativeMethods.mp__MakeStringPacket_At__PKc_Rtimestamp(value, timestamp.mpPtr, out var ptr).Assert(); GC.KeepAlive(timestamp); this.ptr = ptr; }
protected override void DeleteMpPtr() { UnsafeNativeMethods.mp_StatusOrGpuResources__delete(ptr); }
public StringPacket(string value) : base() { UnsafeNativeMethods.mp__MakeStringPacket__PKc(value, out var ptr).Assert(); this.ptr = ptr; }
public Packet() : base(UnsafeNativeMethods.MpPacketCreate(), true) { }
protected override void DeleteMpPtr() { UnsafeNativeMethods.mp_Timestamp__delete(ptr); }
public Anchor3dVectorPacket(Anchor3d[] value, Timestamp timestamp) : base() { UnsafeNativeMethods.mp__MakeAnchor3dVectorPacket_At__PA_i_Rt(value, value.Length, timestamp.mpPtr, out var ptr).Assert(); GC.KeepAlive(timestamp); this.ptr = ptr; }
public GpuBufferPacket(GpuBuffer gpuBuffer, int timestamp) : base(UnsafeNativeMethods.MpMakeGpuBufferPacketAt(gpuBuffer.GetPtr(), timestamp)) { gpuBuffer.ReleaseOwnership(); valueHandle = GCHandle.Alloc(gpuBuffer); }
static CalculatorGraphConfig() { UnsafeNativeMethods.SetProtobufLogHandler(Marshal.GetFunctionPointerForDelegate(protobufLogHandler)); }
public static Timestamp FromSeconds(double seconds) { UnsafeNativeMethods.mp_Timestamp_FromSeconds__d(seconds, out var ptr).Assert(); return(new Timestamp(ptr)); }