public ByteBuffer GetRange(int index, int count) { global::System.IntPtr cPtr = CommonPINVOKE.ByteBuffer_GetRange(swigCPtr, index, count); ByteBuffer ret = (cPtr == global::System.IntPtr.Zero) ? null : new ByteBuffer(cPtr, true); if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }