(buf, size)
| 485 | } |
| 486 | |
| 487 | function build_rthdr(buf, size) { |
| 488 | const len = ((size >> 3) - 1) & ~1; |
| 489 | size = (len + 1) << 3; |
| 490 | |
| 491 | buf[0] = 0; |
| 492 | buf[1] = len; |
| 493 | buf[2] = 0; |
| 494 | buf[3] = len >> 1; |
| 495 | |
| 496 | return size; |
| 497 | } |
| 498 | |
| 499 | function spawn_thread(thread) { |
| 500 | const ctx = new Buffer(context_size); |
no outgoing calls
no test coverage detected