private uint capacity() { uint ret = CommonPINVOKE.ByteBuffer_capacity(swigCPtr); if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }