Files
NapCatQQ/.pnpm-store/v3/files/18/531fd6b220cf9ddc5d9775ce212f5e9623c7db25a27cab474983b4bf59fb0fdc4dbc7469c216ef4d86a0531c344da2c99a92e61c04db51df24022fdcfba6ce
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

17 lines
390 B
Plaintext

/**
* @file woff2数组转base64编码
* @author mengke01(kekee000@gmail.com)
*/
import bytes2base64 from './util/bytes2base64';
/**
* woff数组转base64编码
*
* @param {Array} arrayBuffer ArrayBuffer对象
* @return {string} base64编码
*/
export default function woff2tobase64(arrayBuffer) {
return 'data:font/woff2;charset=utf-8;base64,' + bytes2base64(arrayBuffer);
}