mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Minor optimization
This commit is contained in:
parent
dbae6931ab
commit
bce18c4f55
@ -101,9 +101,8 @@ namespace Nikse.SubtitleEdit.Core.Common
|
||||
}
|
||||
}
|
||||
|
||||
var result = new byte[bytearrayPosition];
|
||||
Array.Copy(byteArray, 0, result, 0, bytearrayPosition);
|
||||
return result;
|
||||
Array.Resize(ref byteArray, bytearrayPosition);
|
||||
return byteArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user