MCPcopy Create free account
hub / github.com/adriancable/eternal / SetNodeVector

Method SetNodeVector

doom/src/tarray.h:821–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819 }
820
821 void SetNodeVector(hash_t size)
822 {
823 // Round size up to nearest power of 2
824 for (Size = 1; Size < size; Size <<= 1)
825 { }
826 Nodes = (Node *)M_Malloc(Size * sizeof(Node));
827 LastFree = &Nodes[Size]; /* all positions are free */
828 for (hash_t i = 0; i < Size; ++i)
829 {
830 Nodes[i].SetNil();
831 }
832 }
833
834 void ClearNodeVector()
835 {

Callers 1

TransferFromMethod · 0.80

Calls 1

SetNilMethod · 0.80

Tested by

no test coverage detected