/**
 * @file woff数组转base64编码
 * @author mengke01(kekee000@gmail.com)
 */



var bytes2base64 = require('./util/bytes2base64');

/**
 * woff数组转base64编码
 *
 * @param {Array} arrayBuffer ArrayBuffer对象
 * @return {string} base64编码
 */
function woff2base64(arrayBuffer) {
    return 'data:font/woff;charset=utf-8;base64,' + bytes2base64(arrayBuffer);
}

module.exports = woff2base64;
    
