MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / copyin

Method copyin

g2all/700/lapse.js:1406–1426  ·  view source on GitHub ↗
(src, dst, len)

Source from the content-addressed store, hash-verified

1404 }
1405
1406 copyin(src, dst, len) {
1407 this._verify_len(len);
1408 const main = this.main_sd;
1409 const worker = this.worker_sd;
1410 const addr_buf = this.addr_buf;
1411 const data_buf = this.data_buf;
1412
1413 addr_buf.write64(0, this.pipe_addr);
1414 ssockopt(main, IPPROTO_IPV6, IPV6_PKTINFO, addr_buf);
1415
1416 data_buf.write64(0, 0);
1417 ssockopt(worker, IPPROTO_IPV6, IPV6_PKTINFO, data_buf);
1418
1419 addr_buf.write64(0, this.pipe_addr2);
1420 ssockopt(main, IPPROTO_IPV6, IPV6_PKTINFO, addr_buf);
1421
1422 addr_buf.write64(0, dst);
1423 ssockopt(worker, IPPROTO_IPV6, IPV6_PKTINFO, addr_buf);
1424
1425 sysi("write", this.wpipe, src, len);
1426 }
1427
1428 copyout(src, dst, len) {
1429 this._verify_len(len);

Callers 4

write8Method · 0.95
write16Method · 0.95
write32Method · 0.95
write64Method · 0.95

Calls 4

_verify_lenMethod · 0.95
ssockoptFunction · 0.70
sysiFunction · 0.70
write64Method · 0.45

Tested by

no test coverage detected