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

Method pullOccurrences

source/core/StarNetElementBasicFields.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32uint64_t NetElementEvent::pullOccurrences() {
33 uint64_t occurrences = get();
34 starAssert(occurrences >= m_pulledOccurrences);
35 uint64_t unchecked = occurrences - m_pulledOccurrences;
36 m_pulledOccurrences = occurrences;
37 return unchecked;
38}
39
40bool NetElementEvent::pullOccurred() {
41 return pullOccurrences() != 0;

Callers 2

updateMethod · 0.80
TESTFunction · 0.80

Calls 1

getFunction · 0.85

Tested by 1

TESTFunction · 0.64