MCPcopy Create free account
hub / github.com/ZDoom/Raze / Alloc

Method Alloc

source/common/filesystem/source/fs_stringpool.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73//==========================================================================
74
75void *StringPool::Block::Alloc(size_t size)
76{
77 if ((char *)Avail + size > Limit)
78 {
79 return nullptr;
80 }
81 void *res = Avail;
82 Avail = ((char *)Avail + size);
83 return res;
84}
85
86StringPool::Block *StringPool::AddBlock(size_t size)
87{

Callers 3

AllocateEntriesMethod · 0.45
AddDirectoryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected