delete byteArrayToString
This commit is contained in:
parent
2bef3c9bab
commit
caa71615d1
8
agent.js
8
agent.js
@ -160,14 +160,6 @@ setTimeout(() => {
|
|||||||
async function handleM3U8Connection(s) {
|
async function handleM3U8Connection(s) {
|
||||||
console.log("New M3U8 connection!");
|
console.log("New M3U8 connection!");
|
||||||
try {
|
try {
|
||||||
const byteArrayToString = byteArray => {
|
|
||||||
let result = '';
|
|
||||||
for (let i = 0; i < byteArray.length; ++i) {
|
|
||||||
result += String.fromCharCode(byteArray[i]);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
};
|
|
||||||
|
|
||||||
const adamSize = (await s.input.readAll(1)).unwrap().readU8();
|
const adamSize = (await s.input.readAll(1)).unwrap().readU8();
|
||||||
if (adamSize !== 0) {
|
if (adamSize !== 0) {
|
||||||
const adam = await s.input.readAll(adamSize);
|
const adam = await s.input.readAll(adamSize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user