MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / ReadFloat

Method ReadFloat

core/logic/CDataPack.cpp:172–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172float CDataPack::ReadFloat() const
173{
174 if (!IsReadable() || elements[position].type != CDataPackType::Float)
175 return 0;
176
177 return elements[position++].pData.fval;
178}
179
180bool CDataPack::IsReadable(size_t bytes) const
181{

Callers 2

smn_BfReadFloatFunction · 0.80
smn_ReadPackFloatFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected