MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / getNext

Method getNext

runtime/Packer.h:378–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 */
377 template<typename T>
378 T getNext() {
379 assert(currPackedValue < endOfValues);
380
381 uint8_t nibble = (onFirstNibble) ? nibblePosition->first
382 : nibblePosition->second;
383
384 T ret = unpack<T>(&currPackedValue, nibble);
385
386 if (!onFirstNibble)
387 ++nibblePosition;
388
389 onFirstNibble = !onFirstNibble;
390
391 return ret;
392 }
393
394 /**
395 * Returns a pointer to to the first byte beyond the last pack()-ed value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected