MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / write

Method write

fs/path.cpp:179–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 return 0;
178 }
179 int Node::write(string_view path, void* v)
180 {
181 if (path.empty() || path.back() == '/')
182 ERROR_RETURN(EINVAL, -1);
183
184 SEEK2ENT(node, it);
185 if (it->second.is_node())
186 ERROR_RETURN(EISDIR, -1);
187
188 it->second.value = v;
189 return 0;
190 }
191 int Node::unlink(string_view path)
192 {
193 if (path.empty() || path.back() == '/')

Callers 7

echoFunction · 0.45
ping_pong_clientFunction · 0.45
streaming_clientFunction · 0.45
echo_serverFunction · 0.45
do_writeFunction · 0.45
mainFunction · 0.45
OVERRIDE_ASYNCMethod · 0.45

Calls 3

emptyMethod · 0.45
backMethod · 0.45
is_nodeMethod · 0.45

Tested by

no test coverage detected