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

Method readAsDataURL

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

Source from the content-addressed store, hash-verified

586 }
587
588 public readAsDataURL(blob: Blob) {
589 this._read(blob, 'readAsDataURL');
590 this._result = `data:${blob.type};base64,${this._array2base64(Blob.InternalAccessor.getBuffer(blob))}`;
591 }
592
593 public readAsText(blob: Blob) {
594 this._read(blob, 'readAsText');

Callers

nothing calls this directly

Calls 3

_readMethod · 0.95
_array2base64Method · 0.95
getBufferMethod · 0.45

Tested by

no test coverage detected