MCPcopy Create free account
hub / github.com/apache/fory / dumpAndOwn

Method dumpAndOwn

javascript/packages/core/lib/writer/index.ts:493–503  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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));

Callers 1

writer.test.tsFile · 0.80

Calls 1

subarrayMethod · 0.45

Tested by

no test coverage detected