public void SetRange(int index, ByteBuffer values) { CommonPINVOKE.ByteBuffer_SetRange(swigCPtr, index, ByteBuffer.getCPtr(values)); if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } }