UNPKG

ts-mls

Version:

[![CI](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml/badge.svg)](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/ts-mls.svg)](https://badge.fury.io/js/ts-mls) [![Coverage Status](https://co

8 lines 367 B
export const defaultPaddingConfig = { kind: "padUntilLength", padUntilLength: 256 }; export function byteLengthToPad(encodedLength, config) { if (config.kind === "alwaysPad") return config.paddingLength; else return encodedLength >= config.padUntilLength ? 0 : config.padUntilLength - encodedLength; } //# sourceMappingURL=paddingConfig.js.map