Skip to content

Commit

Permalink
delete byteArrayToString
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaarey authored Jun 2, 2024
1 parent 2bef3c9 commit caa7161
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,7 @@ setTimeout(() => {

async function handleM3U8Connection(s) {
console.log("New M3U8 connection!");
try {
const byteArrayToString = byteArray => {
let result = '';
for (let i = 0; i < byteArray.length; ++i) {
result += String.fromCharCode(byteArray[i]);
}
return result;
};

try {
const adamSize = (await s.input.readAll(1)).unwrap().readU8();
if (adamSize !== 0) {
const adam = await s.input.readAll(adamSize);
Expand Down

0 comments on commit caa7161

Please sign in to comment.