C# Класс OpenCvSharp.DisposableObject

Represents a class which manages its own memory.
Наследование: IDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
dataHandle System.Runtime.InteropServices.GCHandle

Открытые методы

Метод Описание
Dispose ( ) : void

Releases the resources

ThrowIfDisposed ( ) : void

If this object is disposed, then ObjectDisposedException is thrown.

Защищенные методы

Метод Описание
AllocGCHandle ( object obj ) : GCHandle

Pins the object to be allocated by cvSetData.

AllocMemory ( int size ) : IntPtr

Allocates the specified size of memory.

DisposableObject ( ) : System

Default constructor

DisposableObject ( bool isEnabledDispose ) : System

Constructor

Dispose ( bool disposing ) : void

Releases the resources

NotifyMemoryPressure ( long size ) : void

Notifies the allocated size of memory.

Описание методов

AllocGCHandle() защищенный Метод

Pins the object to be allocated by cvSetData.
protected AllocGCHandle ( object obj ) : GCHandle
obj object
Результат System.Runtime.InteropServices.GCHandle

AllocMemory() защищенный Метод

Allocates the specified size of memory.
protected AllocMemory ( int size ) : IntPtr
size int
Результат System.IntPtr

DisposableObject() защищенный Метод

Default constructor
protected DisposableObject ( ) : System
Результат System

DisposableObject() защищенный Метод

Constructor
protected DisposableObject ( bool isEnabledDispose ) : System
isEnabledDispose bool true if you permit disposing this class by GC
Результат System

Dispose() публичный Метод

Releases the resources
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases the resources
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
Результат void

NotifyMemoryPressure() защищенный Метод

Notifies the allocated size of memory.
protected NotifyMemoryPressure ( long size ) : void
size long
Результат void

ThrowIfDisposed() публичный Метод

If this object is disposed, then ObjectDisposedException is thrown.
public ThrowIfDisposed ( ) : void
Результат void

Описание свойств

dataHandle защищенное свойство

Gets or sets a handle which allocates using cvSetData.
protected GCHandle,System.Runtime.InteropServices dataHandle
Результат System.Runtime.InteropServices.GCHandle