MCPcopy
hub / github.com/lutzroeder/netron / write

Method write

source/python.js:2689–2697  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

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 }

Callers 5

constructorMethod · 0.45
printMethod · 0.45
print_attributesMethod · 0.45
printTypeListMethod · 0.45
printAttrValueMethod · 0.45

Calls 2

setMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected