MCPcopy Create free account
hub / github.com/Norbyte/bg3se / Grow

Method Grow

BG3Extender/Extender/Shared/ExtenderNet.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void MessageFactory::Grow(uint32_t lastMessageId)
20{
21 if (MessagePools.size() <= lastMessageId) {
22 EnterCriticalSection(&CriticalSection);
23 unsigned size = MessagePools.size();
24 while (MessagePools.size() <= lastMessageId) {
25 MessagePools.push_back(nullptr);
26 }
27 LeaveCriticalSection(&CriticalSection);
28 }
29}
30
31void MessageFactory::Register(uint32_t messageId, Message* tmpl)
32{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected