MCPcopy Create free account
hub / github.com/angular/angular / fromBase64

Function fromBase64

packages/common/http/src/transfer_cache.ts:449–453  ·  view source on GitHub ↗
(base64: string)

Source from the content-addressed store, hash-verified

447}
448
449function fromBase64(base64: string): ArrayBuffer {
450 const binary = atob(base64);
451 const bytes = Uint8Array.from(binary, (c) => c.charCodeAt(0));
452 return bytes.buffer;
453}
454
455/**
456 * Returns the DI providers needed to enable HTTP transfer cache.

Callers 1

retrieveStateFromCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected