MCPcopy Create free account
hub / github.com/modelscope/FunASR / BytesEq

Function BytesEq

runtime/html5/static/recorder-core.js:1414–1421  ·  view source on GitHub ↗
(bytes1,bytes2)

Source from the content-addressed store, hash-verified

1412};
1413//两个字节数组内容是否相同
1414var BytesEq=function(bytes1,bytes2){
1415 if(!bytes1 || bytes1.length!=bytes2.length) return false;
1416 if(bytes1.length==1) return bytes1[0]==bytes2[0];
1417 for(var i=0;i<bytes1.length;i++){
1418 if(bytes1[i]!=bytes2[i]) return false;
1419 }
1420 return true;
1421};
1422//字节数组BE转成int数字
1423var BytesInt=function(bytes){
1424 var s="";//0-8字节,js位运算只支持4字节

Callers 1

WebM_ExtractFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…