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

Function toBase64VLQ

packages/compiler/src/output/source_map.ts:168–182  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

166}
167
168function toBase64VLQ(value: number): string {
169 value = value < 0 ? (-value << 1) + 1 : value << 1;
170
171 let out = '';
172 do {
173 let digit = value & 31;
174 value = value >> 5;
175 if (value > 0) {
176 digit = digit | 32;
177 }
178 out += toBase64Digit(digit);
179 } while (value > 0);
180
181 return out;
182}
183
184const B64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
185

Callers 1

toJSONMethod · 0.85

Calls 1

toBase64DigitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…