MCPcopy Create free account
hub / github.com/devilsen/CZXing / encode

Method encode

czxing/src/main/cpp/zxing/src/aztec/AZWriter.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25BitMatrix
26Writer::encode(const std::wstring& contents, int width, int height) const
27{
28 std::string bytes = TextEncoder::FromUnicode(contents, _encoding);
29 EncodeResult aztec = Encoder::Encode(bytes, _eccPercent, _layers);
30 return Inflate(std::move(aztec.matrix), width, height, _margin);
31}
32
33BitMatrix Writer::encode(const std::string& contents, int width, int height) const
34{

Calls 4

InflateFunction · 0.85
moveFunction · 0.85
EncodeFunction · 0.50
FromUtf8Function · 0.50

Tested by

no test coverage detected