mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 05:23:13 +00:00
Sockets
This commit is contained in:
@ -1041,8 +1041,8 @@ namespace Esyur.Data
|
||||
if (data.Length < offset + length)
|
||||
return null;
|
||||
|
||||
if (length == data.Length && offset == 0)
|
||||
return data;
|
||||
// if (length == data.Length && offset == 0)
|
||||
// return data.ToArray();
|
||||
|
||||
var b = new byte[length];
|
||||
Buffer.BlockCopy(data, (int)offset, b, 0, (int)length);
|
||||
|
Reference in New Issue
Block a user