MCPcopy Create free account
hub / github.com/denoland/std / calcSizeBase64

Function calcSizeBase64

encoding/_common64.ts:50–52  ·  view source on GitHub ↗
(originalSize: number)

Source from the content-addressed store, hash-verified

48 * ```
49 */
50export function calcSizeBase64(originalSize: number): number {
51 return ((originalSize + 2) / 3 | 0) * 4;
52}
53
54export function encode(
55 buffer: Uint8Array_,

Callers 7

transformMethod · 0.90
flushMethod · 0.90
encodeBase64Function · 0.90
encodeBase64UrlFunction · 0.90
encodeBase64Function · 0.90
encodeIntoBase64Function · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected