MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / allocate

Method allocate

XM/include/Utils/memory.h:865–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863 }
864
865 inline void allocate(const int size) {
866 if (this->vals == nullptr) {
867 this->size = size;
868 this->vals = (size_t*) malloc(sizeof(size_t) * size);
869 }
870 return;
871 }
872
873 ~HostDnVecLongInt() {
874 if (this->vals != nullptr) {

Callers 1

HostDnVecLongIntMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected