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

Function fromBase64

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

Source from the content-addressed store, hash-verified

421}
422
423function fromBase64(base64: string): ArrayBuffer {
424 const binary = atob(base64);
425 const bytes = Uint8Array.from(binary, (c) => c.charCodeAt(0));
426 return bytes.buffer;
427}
428
429/**
430 * 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