MCPcopy Create free account
hub / github.com/WheretIB/nullc / FastVector

Method FastVector

NULLC/translation/runtime.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28{
29public:
30 FastVector()
31 {
32 data = (T*)malloc(sizeof(T) * 128);
33 memset(data, 0, sizeof(T));
34 max = 128;
35 count = 0;
36 }
37 explicit FastVector(unsigned int reserved)
38 {
39 data = (T*)malloc(sizeof(T) * reserved);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected