* Check if there's data available in the network ring buffer
()
| 299 | * Check if there's data available in the network ring buffer |
| 300 | */ |
| 301 | hasNetworkData() { |
| 302 | const head = Atomics.load(this.int32, NET_HEAD_INDEX); |
| 303 | const tail = Atomics.load(this.int32, NET_TAIL_INDEX); |
| 304 | return head !== tail; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Check if there's stdin data available |