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

17 lines
386 B
Plaintext

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