MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / readAsText

Method readAsText

packages/core/xhr/index.ts:593–597  ·  view source on GitHub ↗
(blob: Blob)

Source from the content-addressed store, hash-verified

591 }
592
593 public readAsText(blob: Blob) {
594 this._read(blob, 'readAsText');
595 const textDecoder = new TextDecoder();
596 this._result = textDecoder.decode(Blob.InternalAccessor.getBuffer(blob));
597 }
598
599 public readAsArrayBuffer(blob: Blob) {
600 this._read(blob, 'readAsArrayBuffer');

Callers 1

readBlobAsTextFunction · 0.95

Calls 3

_readMethod · 0.95
decodeMethod · 0.95
getBufferMethod · 0.45

Tested by

no test coverage detected