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

Function ReadTextDocument

src/codec/DataTypes.cpp:279–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279TextDocumentHandle ReadTextDocument(DecodeStream* stream,
280 std::unique_ptr<BlockConfig> (*ConfigMaker)(TextDocument*)) {
281 auto value = std::make_shared<TextDocument>();
282 if (!ReadBlock(stream, value.get(), ConfigMaker)) {
283 return nullptr;
284 };
285 return value;
286}
287
288TextDocumentHandle ReadTextDocument(DecodeStream* stream) {
289 return ReadTextDocument(stream, TextDocumentBlock);

Callers 3

readValueMethod · 0.85
ReadTextDocumentV2Function · 0.85
ReadTextDocumentV3Function · 0.85

Calls 2

ReadBlockFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected