MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / write

Method write

src/core/impl/system.cpp:361–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359 }
360
361 void write(const void* src_, size_t size) {
362 auto src = static_cast<const uint8_t*>(src_);
363 while (size) {
364 auto cur_send = send(m_peer_fd, src, size, 0);
365 CHECK_SYS_ERR(cur_send);
366 mgb_assert(cur_send > 0);
367 src += cur_send;
368 size -= cur_send;
369 }
370 }
371
372 template <class T>
373 T read_pod() {

Callers 2

gen_cache_data_headerMethod · 0.45
topN_fileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected