UNPKG

@phensley/cldr-utils

Version:
15 lines (14 loc) 672 B
/** * Decode a Z85-encoded string into an array of byte values. This decodes * 5 characters as 4 bytes. */ export declare const z85Decode: (s: string) => Uint8Array; /** Decode a 32-bit unsigned integer as a 32-bit signed integer. */ export declare const zigzag32Decode: (n: number) => number; /** * Decodes a variable-length unsigned 32-bit integer from the given * byte array, writing the decoded integers back to the same array. * An optional mapping function can be supplied to transform each * integer before it is appended to the buffer. */ export declare const vuintDecode: (arr: number[] | Uint8Array, f?: ((x: number) => number) | undefined) => number[];