Core\Rpc: GetRemainingCount (of arguments)

git-svn-id: svn://ultimatepp.org/upp/trunk@6219 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-07-31 11:34:51 +00:00
parent e2ed4ec36f
commit 05ba918ae6

View file

@ -208,7 +208,9 @@ struct RpcData {
ValueMap in_map;
ValueArray out;
ValueMap out_map;
int GetRemainingCount() const { return in.GetCount() - ii; }
Value Get() { if(ii >= in.GetCount()) throw ValueTypeMismatch(); return in[ii++]; }
template <class T>