1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
12
using System.Runtime.InteropServices;
14
public class AsyncReader : IDisposable {
15
private HandleRef swigCPtr;
16
protected bool swigCMemOwn;
17
protected object swigParentRef;
19
protected static object ThisOwn_true() { return null; }
20
protected object ThisOwn_false() { return this; }
22
public AsyncReader(IntPtr cPtr, bool cMemoryOwn, object parent) {
23
swigCMemOwn = cMemoryOwn;
24
swigParentRef = parent;
25
swigCPtr = new HandleRef(this, cPtr);
28
public static HandleRef getCPtr(AsyncReader obj) {
29
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
31
public static HandleRef getCPtrAndDisown(AsyncReader obj, object parent) {
34
obj.swigCMemOwn = false;
35
obj.swigParentRef = parent;
40
return new HandleRef(null, IntPtr.Zero);
43
public static HandleRef getCPtrAndSetReference(AsyncReader obj, object parent) {
46
obj.swigParentRef = parent;
51
return new HandleRef(null, IntPtr.Zero);
59
public virtual void Dispose() {
61
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
63
GdalPINVOKE.delete_AsyncReader(swigCPtr);
65
swigCPtr = new HandleRef(null, IntPtr.Zero);
67
GC.SuppressFinalize(this);
71
public AsyncStatusType GetNextUpdatedRegion(double timeout, out int xoff, out int yoff, out int buf_xsize, out int buf_ysize) {
72
AsyncStatusType ret = (AsyncStatusType)GdalPINVOKE.AsyncReader_GetNextUpdatedRegion(swigCPtr, timeout, out xoff, out yoff, out buf_xsize, out buf_ysize);
73
if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
77
public int LockBuffer(double timeout) {
78
int ret = GdalPINVOKE.AsyncReader_LockBuffer(swigCPtr, timeout);
79
if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
83
public void UnlockBuffer() {
84
GdalPINVOKE.AsyncReader_UnlockBuffer(swigCPtr);
85
if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();