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

Method copyout

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

Source from the content-addressed store, hash-verified

1426 }
1427
1428 copyout(src, dst, len) {
1429 this._verify_len(len);
1430 const main = this.main_sd;
1431 const worker = this.worker_sd;
1432 const addr_buf = this.addr_buf;
1433 const data_buf = this.data_buf;
1434
1435 addr_buf.write64(0, this.pipe_addr);
1436 ssockopt(main, IPPROTO_IPV6, IPV6_PKTINFO, addr_buf);
1437
1438 data_buf.write32(0, 0x40000000);
1439 ssockopt(worker, IPPROTO_IPV6, IPV6_PKTINFO, data_buf);
1440
1441 addr_buf.write64(0, this.pipe_addr2);
1442 ssockopt(main, IPPROTO_IPV6, IPV6_PKTINFO, addr_buf);
1443
1444 addr_buf.write64(0, src);
1445 ssockopt(worker, IPPROTO_IPV6, IPV6_PKTINFO, addr_buf);
1446
1447 sysi("read", this.rpipe, dst, len);
1448 }
1449
1450 _read(addr) {
1451 const buf = this.rw_buf;

Callers 1

make_kernel_arwFunction · 0.95

Calls 5

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

Tested by

no test coverage detected