()
| 708 | } |
| 709 | |
| 710 | const end = (): Uint8Array => { |
| 711 | // Relative to `start`, because writing may have moved the message to a new |
| 712 | // pool buffer. The length counts itself but not the type byte. |
| 713 | sharedWriter.setInt32(sharedWriter.start + 1, sharedWriter.offset - sharedWriter.start - 1) |
| 714 | return sharedWriter.finish() |
| 715 | } |
| 716 | |
| 717 | const empty = (type: number): Uint8Array => { |
| 718 | const writer = begin(type) |
no test coverage detected