| 196 | } |
| 197 | |
| 198 | int CScriptObjectStream::ReadNumberInBits(IFunctionHandler *pH) |
| 199 | { |
| 200 | CHECK_PARAMETERS(1); |
| 201 | unsigned int n; |
| 202 | int nNumOfBits; |
| 203 | pH->GetParam(1,nNumOfBits); |
| 204 | |
| 205 | if(nNumOfBits<1 || nNumOfBits>32) |
| 206 | CryError( "CScriptObjectStream::ReadNumberInBits(%d) failed",nNumOfBits ); |
| 207 | |
| 208 | if(!m_pStm->ReadNumberInBits(n,nNumOfBits)) |
| 209 | return pH->EndFunctionNull(); |
| 210 | |
| 211 | return pH->EndFunction((int)n); |
| 212 | } |
no test coverage detected