MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / ReadNumberInBits

Method ReadNumberInBits

CryGame/ScriptObjectStream.cpp:198–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198int 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}

Callers 5

ReadScheduledEventsMethod · 0.45
ReadBitStreamMethod · 0.45
ReadMethod · 0.45
Read_PATCH_1Method · 0.45

Calls 4

CryErrorFunction · 0.85
EndFunctionNullMethod · 0.80
EndFunctionMethod · 0.80
GetParamMethod · 0.45

Tested by

no test coverage detected