mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 13:58:26 +00:00
avoid using LINQ for array slicing
This commit is contained in:
parent
2efd7adf6e
commit
700cfa845e
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ namespace Toolbox.Library
|
|||
|
||||
public static byte[] SubArray(byte[] data, uint offset, uint length)
|
||||
{
|
||||
return data.Skip((int)offset).Take((int)length).ToArray();
|
||||
return data.Slice(offset, length);
|
||||
}
|
||||
|
||||
public static string RenameDuplicateString(List<string> strings, string oldString, int index = 0, int numDigits = 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue