// Token: 0x06002C4E RID: 11342 RVA: 0x000DD110 File Offset: 0x000DB510 private void Dispose(bool disposing) { if (this._pNative == IntPtr.Zero) { return; } this.__EventCleanup(); NativeObjectCache.RemoveObject <DepthFrameReference>(this._pNative); DepthFrameReference.Windows_Kinect_DepthFrameReference_ReleaseObject(ref this._pNative); this._pNative = IntPtr.Zero; }
// Token: 0x06002C52 RID: 11346 RVA: 0x000DD184 File Offset: 0x000DB584 public DepthFrame AcquireFrame() { if (this._pNative == IntPtr.Zero) { throw new ObjectDisposedException("DepthFrameReference"); } IntPtr intPtr = DepthFrameReference.Windows_Kinect_DepthFrameReference_AcquireFrame(this._pNative); ExceptionHelper.CheckLastError(); if (intPtr == IntPtr.Zero) { return(null); } return(NativeObjectCache.CreateOrGetObject <DepthFrame>(intPtr, (IntPtr n) => new DepthFrame(n))); }
// Token: 0x06002C49 RID: 11337 RVA: 0x000DD0BC File Offset: 0x000DB4BC internal DepthFrameReference(IntPtr pNative) { this._pNative = pNative; DepthFrameReference.Windows_Kinect_DepthFrameReference_AddRefObject(ref this._pNative); }