公告板
版本库
filestore
活动
搜索
登录
main
/
IC_RW
IC本地读写桌面程序
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
初始化项目
15815213711
2024-08-26
67b8b6731811983447e053d4396b3708c14dfe3c
[IC_RW.git]
/
node_modules
/
utf8-byte-length
/
index.js
1
2
3
4
5
6
7
8
"use strict";
module.exports = function getByteLength(string) {
if (typeof string !== "string") {
throw new Error("Input must be string");
}
return Buffer.byteLength(string, "utf8");
};