MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / SerializeBodyTL

Function SerializeBodyTL

src/platform/linux/cloud_hooks.cpp:249–254  ·  view source on GitHub ↗

Serialize a protobuf body object into a thread-local buffer for the GamesPlayed observer (runs on Steam's network thread).

Source from the content-addressed store, hash-verified

247// Serialize a protobuf body object into a thread-local buffer for the
248// GamesPlayed observer (runs on Steam's network thread).
249static const uint8_t* SerializeBodyTL(void* bodyObj, size_t* outLen) {
250 static thread_local std::vector<uint8_t> tlBuf;
251 tlBuf = SerializeMessage(bodyObj);
252 if (outLen) *outLen = tlBuf.size();
253 return tlBuf.empty() ? nullptr : tlBuf.data();
254}
255
256void CloudHooks::InstallGamesPlayedObserver(uintptr_t steamclientBase, size_t steamclientSize) {
257 if (!g_serializeToArray) {

Callers

nothing calls this directly

Calls 2

SerializeMessageFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected