MCPcopy Create free account
hub / github.com/catboost/catboost / Serialize

Method Serialize

library/cpp/netliba/v12/udp_host_protocol.h:296–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294 }
295
296 size_t Serialize(char** buf) const {
297 size_t writen = 0;
298 writen += Write(buf, TransferFlags);
299 if (TransferFlags & TO_HAS_SHM) {
300 writen += Write(buf, SharedMemoryGuid);
301 writen += Write(buf, SharedMemorySize);
302 }
303 return writen;
304 }
305
306 TTransferOptions& SetSharedMemory(ui32 sz, const TGUID& guid) {
307 TransferFlags |= TO_HAS_SHM;

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.70

Tested by

no test coverage detected