C# 클래스 OpenCvSharp.DisposableObject

Represents a class which manages its own memory.
상속: IDisposable
파일 보기 프로젝트 열기: shimat/opencvsharp

보호된 프로퍼티들

프로퍼티 타입 설명
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