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

Method allocate

XM/include/Utils/memory.h:893–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891 }
892
893 inline void allocate(const size_t size) {
894 if (this->vals == nullptr) {
895 this->size = size;
896 this->vals = (ptrdiff_t*) malloc(sizeof(ptrdiff_t) * size);
897 }
898 return;
899 }
900
901 ~HostDnVecPtrdiff_t() {
902 if (this->vals != nullptr) {

Callers 1

HostDnVecPtrdiff_tMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected