()
| 520 | } |
| 521 | |
| 522 | beginLength(): number { |
| 523 | // Relative to `start`, because a later write may move the message to a new |
| 524 | // pool buffer, which rebases `start` and `offset` but not the distance |
| 525 | // between them. |
| 526 | const token = this.offset - this.start |
| 527 | this.int32(0) |
| 528 | return token |
| 529 | } |
| 530 | |
| 531 | endLength(token: number): void { |
| 532 | this.setInt32(this.start + token, this.offset - this.start - token - 4) |
no test coverage detected