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