MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / allocate

Method allocate

src/allocator.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35{
36public:
37 virtual Buffer *allocate(size_t size)
38 {
39 Buffer *b = new Buffer;
40 b->data = new unsigned char[size];
41 b->length = 0;
42 b->capacity = size;
43 b->allocator = this;
44 return b;
45 }
46
47 virtual void free(Buffer *b)
48 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected