Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
78
std::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
86
std::size_t Message::getPayload(void **p) {
87
if (this->psize_ == 0)
Callers
1
main
Function · 0.80
Calls
no outgoing calls
Tested by
1
main
Function · 0.64