(data)
| 2687 | throw new python.Error('Unsupported buffer type.'); |
| 2688 | } |
| 2689 | write(data) { |
| 2690 | const src = this._buf || new Uint8Array(); |
| 2691 | const end = this._point + data.length; |
| 2692 | const size = Math.max(src.length, end); |
| 2693 | this._buf = new Uint8Array(size); |
| 2694 | this._buf.set(src, 0); |
| 2695 | this._buf.set(data, this._point); |
| 2696 | this._point = end; |
| 2697 | } |
| 2698 | getbuffer() { |
| 2699 | return new builtins.memoryview(this._buf); |
| 2700 | } |
no test coverage detected