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

Method writeByteData

src/codec/utils/EncodeStream.cpp:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void EncodeStream::writeByteData(const pag::ByteData* byteData) {
143 if (byteData == nullptr) {
144 return;
145 }
146 auto length = static_cast<uint32_t>(byteData->length());
147 writeEncodedUint32(length);
148 writeBytes(byteData->data(), length);
149}
150
151void EncodeStream::writeUTF8String(const std::string& text) {
152 auto textLength = text.size();

Callers 3

WriteImageBytesFunction · 0.80
WriteBitmapSequenceFunction · 0.80
WriteAudioBytesFunction · 0.80

Calls 2

lengthMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected