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