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

Method text

packages/core/xhr/index.ts:439–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

437 }
438
439 public text(): Promise<string> {
440 const textDecoder = new TextDecoder();
441
442 return Promise.resolve(textDecoder.decode(this._buffer));
443 }
444
445 public slice(start?: number, end?: number, type?: string): Blob {
446 const slice = this._buffer.slice(start || 0, end || this._buffer.length);

Callers 5

BodyFunction · 0.45
fetchCodeframeFunction · 0.45
dumpDynImportDiagnosticsFunction · 0.45
fetchTextFunction · 0.45
__ns_import_httpFunction · 0.45

Calls 2

decodeMethod · 0.95
resolveMethod · 0.80

Tested by

no test coverage detected