北斗短报文通信服务平台

This commit is contained in:
2026-03-27 17:51:58 +08:00
commit 90a8407924
103 changed files with 2714 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
// 计算数组中十六进制数据的总字节数,并在最终结果中加上时间信息的4字节长度
module.exports = (arr) => {
let length = 0;
arr.forEach(element => {
length = length + (element.length / 2);
});
return length + 4;
};