(buf, size)
| 441 | } |
| 442 | |
| 443 | function build_rthdr(buf, size) { |
| 444 | const len = ((size >> 3) - 1) & ~1; |
| 445 | size = (len + 1) << 3; |
| 446 | |
| 447 | buf[0] = 0; |
| 448 | buf[1] = len; |
| 449 | buf[2] = 0; |
| 450 | buf[3] = len >> 1; |
| 451 | |
| 452 | return size; |
| 453 | } |
| 454 | |
| 455 | function spawn_thread(thread) { |
| 456 | const ctx = new Buffer(context_size); |
no outgoing calls
no test coverage detected