MCPcopy Index your code
hub / github.com/angular/angular / calcSerializedContainerSize

Function calcSerializedContainerSize

packages/core/src/hydration/utils.ts:481–488  ·  view source on GitHub ↗
(hydrationInfo: DehydratedView, index: number)

Source from the content-addressed store, hash-verified

479 * by calculating the sum of root nodes in all dehydrated views in this container.
480 */
481export function calcSerializedContainerSize(hydrationInfo: DehydratedView, index: number): number {
482 const views = getSerializedContainerViews(hydrationInfo, index) ?? [];
483 let numNodes = 0;
484 for (let view of views) {
485 numNodes += view[NUM_ROOT_NODES] * (view[MULTIPLIER] ?? 1);
486 }
487 return numNodes;
488}
489
490/**
491 * Attempt to initialize the `disconnectedNodes` field of the given

Callers 3

locateNextRNodeFunction · 0.90
getNgContainerSizeFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…