()
| 491 | } |
| 492 | |
| 493 | dumpAndOwn() { |
| 494 | this.locked = true; |
| 495 | return { |
| 496 | get: () => { |
| 497 | return this.platformBuffer.subarray(0, this.cursor); |
| 498 | }, |
| 499 | dispose: () => { |
| 500 | this.locked = false; |
| 501 | }, |
| 502 | }; |
| 503 | } |
| 504 | |
| 505 | writeFloat16(value: number) { |
| 506 | this.writeUint16(toFloat16Bits(value)); |