Exemplo n.º 1
0
        protected virtual void Dispose(bool disposing)
        {
            if (_pNative == RootSystem.IntPtr.Zero)
            {
                return;
            }

            Helper.NativeObjectCache.RemoveObject<IBuffer>(_pNative);
            Windows_Storage_Streams_IBuffer_ReleaseObject(ref _pNative);

            _pNative = RootSystem.IntPtr.Zero;
        }
Exemplo n.º 2
0
 // Constructors and Finalizers
 internal IBuffer(RootSystem.IntPtr pNative)
 {
     _pNative = pNative;
     Windows_Storage_Streams_IBuffer_AddRefObject(ref _pNative);
 }