public int LockBuffer(double timeout) { int ret = GdalPINVOKE.AsyncReader_LockBuffer(swigCPtr, timeout); if (GdalPINVOKE.SWIGPendingException.Pending) { throw GdalPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }