using System;
using System.Collections.Generic;
-using System.Linq;
namespace Novacoin
{
throw new ByteQueueException("Unable to read requested amount of data.");
}
- byte[] result = Elements.Skip(Index).Take(Count).ToArray();
+ byte[] result = Elements.GetRange(Index, Count).ToArray();
Index += Count;
return result;
throw new ByteQueueException("Unable to read requested amount of data.");
}
- byte[] result = Elements.Skip(Index).Take(Count).ToArray();
+ byte[] result = Elements.GetRange(Index, Count).ToArray();
return result;
}