Click or drag to resize

DisposableObject Class

Represents a class which manages its own memory.
Inheritance Hierarchy

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public abstract class DisposableObject : IDisposable

The DisposableObject type exposes the following members.

Constructors
Properties
  NameDescription
Protected propertyAllocatedMemory
Gets or sets a memory address allocated by AllocMemory.
Protected propertyAllocatedMemorySize
Gets or sets the byte length of the allocated memory
Protected propertyDataHandle
Gets or sets a handle which allocates using cvSetData.
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
Top
Methods
  NameDescription
Protected methodAllocGCHandle
Pins the object to be allocated by cvSetData.
Protected methodAllocMemory
Allocates the specified size of memory.
Public methodDispose
Releases the resources
Protected methodDispose(Boolean)
Releases the resources
Protected methodDisposeManaged
Releases managed resources
Protected methodDisposeUnmanaged
Releases unmanaged resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also