MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / readVlqI

Method readVlqI

source/core/StarDataStream.cpp:219–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219size_t DataStream::readVlqI(int64_t& i) {
220 size_t bytesRead = Star::readVlqI(i, makeFunctionInputIterator([this]() { return this->read<uint8_t>(); }));
221
222 if (bytesRead == NPos)
223 throw DataStreamException("Error reading VLQ encoded integer!");
224
225 return bytesRead;
226}
227
228size_t DataStream::readVlqS(size_t& i) {
229 uint64_t i64;

Callers 6

readMethod · 0.80
receivePacketsMethod · 0.80
ProjectileMethod · 0.80
readValueMethod · 0.80
StarJson.cppFile · 0.80
readDataMethod · 0.80

Calls 2

readVlqIFunction · 0.85

Tested by

no test coverage detected