MCPcopy Create free account
hub / github.com/Tencent/tgfx / appendFloatArray

Method appendFloatArray

src/pdf/PDFMetadata.cpp:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void PDFAttributeList::appendFloatArray(const std::string& owner, const std::string& name,
64 const std::vector<float>& value) {
65 if (!attributes) {
66 attributes = MakePDFArray();
67 }
68 auto attrDict = PDFDictionary::Make();
69 attrDict->insertName("O", owner);
70 auto pdfArray = MakePDFArray();
71 for (float element : value) {
72 pdfArray->appendScalar(element);
73 }
74 attrDict->insertObject(name, std::move(pdfArray));
75 attributes->appendObject(std::move(attrDict));
76}
77
78void PDFAttributeList::appendNodeIdArray(const std::string& owner, const std::string& name,
79 const std::vector<int>& nodeIds) {

Callers

nothing calls this directly

Calls 6

MakePDFArrayFunction · 0.85
MakeFunction · 0.85
insertNameMethod · 0.80
appendScalarMethod · 0.80
insertObjectMethod · 0.80
appendObjectMethod · 0.80

Tested by

no test coverage detected