MCPcopy Create free account
hub / github.com/Snapchat/Valdi / toCFRefVector

Function toCFRefVector

valdi_core/src/valdi_core/cpp/Apple/CFConversions.cpp:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64template<typename T>
65CFRefVector toCFRefVector(const T* values, size_t size) {
66 CFRefVector output;
67 output.reserve(size);
68
69 for (size_t i = 0; i < size; i++) {
70 output.append(toCFValue(values[i]));
71 }
72
73 return output;
74}
75
76CFRef<CFTypeRef> toCFArray(std::initializer_list<float> values) {
77 auto valuesAsNumbers = toCFRefVector(values.begin(), values.size());

Callers 1

toCFArrayFunction · 0.85

Calls 3

toCFValueFunction · 0.70
appendMethod · 0.65
reserveMethod · 0.45

Tested by

no test coverage detected