MCPcopy Create free account
hub / github.com/beefytech/Beef / CopyFrom

Method CopyFrom

IDEHelper/Beef/BfCommon.h:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 void CopyFrom(T* vals, int size, BumpAllocator& bumpAlloc)
104 {
105 mVals = (T*)bumpAlloc.AllocBytes(sizeof(T) * size, alignof(T));
106 mSize = size;
107 memcpy(mVals, vals, sizeof(T) * size);
108 }
109
110 T& operator[](int idx) const
111 {

Callers 1

CommitMethod · 0.45

Calls 1

AllocBytesMethod · 0.45

Tested by

no test coverage detected