(value: number)
| 21 | } |
| 22 | |
| 23 | push(value: number): ByteVector { |
| 24 | const i = this._sizeWritten; |
| 25 | if (i === this._storage.length) { |
| 26 | this._realloc(); |
| 27 | } |
| 28 | this._storage[i] = value; |
| 29 | this._sizeWritten = i + 1; |
| 30 | return this; |
| 31 | } |
| 32 | |
| 33 | getBuffer(): ArrayBuffer { |
| 34 | return this._storage.buffer.slice(0, this._sizeWritten); |