copy/v86

Support changing 9p mount tag at runtime

开放

#678 创建于 2022年6月8日

 (10 条评论) (0 个反应) (0 位负责人)JavaScript (1,880 个派生)batch import
enhancementgood first issue

仓库指标

星标
 (23,416 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

It would be helpful to be able to change the name of the 9p file share. https://github.com/copy/v86/blob/4eb1e5035e91490c5aeebab45553d5043cd84b95/lib/9p.js#L82

For dynamically generating mount tags:

/**
 * @param {string} mountTagName
 */
function genMountTagArray(mountTagName) {
    /**
     * @type {Number[]}
     */
    let _mountTagArray;
    Array.from(mountTagName).forEach(function(char) {
        _mountTagArray.push(char.charCodeAt(0));
    });
    return _mountTagArray;
};

贡献者指南