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

Function readMatroskaBlock

runtime/html5/static/recorder-core.js:1443–1454  ·  view source on GitHub ↗
(arr,pos)

Source from the content-addressed store, hash-verified

1441};
1442//读取一个自带长度的内容字节数组
1443var readMatroskaBlock=function(arr,pos){
1444 var lenVal=readMatroskaVInt(arr,pos,1);
1445 if(!lenVal)return;
1446 var len=BytesInt(lenVal);
1447 var i=pos[0], val=[];
1448 if(len<0x7FFFFFFF){ //超大值代表没有长度
1449 if(i+len>arr.length)return;
1450 for(var i2=0;i2<len;i2++){ val[i2]=arr[i]; i++; }
1451 }
1452 pos[0]=i;
1453 return val;
1454};
1455//=====End WebM读取=====
1456
1457

Callers 1

WebM_ExtractFunction · 0.70

Calls 2

readMatroskaVIntFunction · 0.70
BytesIntFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…