MCPcopy Create free account
hub / github.com/Tencent/libpag / writeUTF8String

Method writeUTF8String

src/codec/utils/EncodeStream.cpp:151–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void EncodeStream::writeUTF8String(const std::string& text) {
152 auto textLength = text.size();
153 if (checkCapacity(textLength + 1)) {
154 memcpy(bytes + _position, text.c_str(), textLength + 1);
155 positionChanged(textLength + 1);
156 }
157}
158
159void EncodeStream::writeEncodedInt64(int64_t value) {
160 uint64_t flag = value < 0 ? 1 : 0;

Callers 5

writeValueMethod · 0.80
WriteStringFunction · 0.80
WriteMarkerListFunction · 0.80
WriteFileAttributesFunction · 0.80
WriteFontTablesFunction · 0.80

Calls 2

memcpyFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected