MCPcopy Create free account
hub / github.com/apache/singa / getMetadata

Method getMetadata

src/io/network/message.cc:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78std::size_t Message::getMetadata(void **p) {
79 if (this->msize_ == 0)
80 *p = nullptr;
81 else
82 *p = msg_ + hsize_;
83 return this->msize_;
84}
85
86std::size_t Message::getPayload(void **p) {
87 if (this->psize_ == 0)

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64