PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@bufbuild/protobuf/dist/esm/wire

Просмотр файла: base64-encoding.d.ts

/**
 * Decodes a base64 string to a byte array.
 *
 * - ignores white-space, including line breaks and tabs
 * - allows inner padding (can decode concatenated base64 strings)
 * - does not require padding
 * - understands base64url encoding:
 *   "-" instead of "+",
 *   "_" instead of "/",
 *   no padding
 */
export declare function base64Decode(base64Str: string): Uint8Array;
/**
 * Encode a byte array to a base64 string.
 *
 * By default, this function uses the standard base64 encoding with padding.
 *
 * To encode without padding, use encoding = "std_raw".
 *
 * To encode with the URL encoding, use encoding = "url", which replaces the
 * characters +/ by their URL-safe counterparts -_, and omits padding.
 */
export declare function base64Encode(bytes: Uint8Array, encoding?: "std" | "std_raw" | "url"): string;

Выполнить команду


Для локальной разработки. Не используйте в интернете!