I cannot find any direct function (e.g. mybytearray.copy (offset, count)) that selects a range of bytes from an array of bytes. So, do I need to execute a loop to copy the necessary bytes?
You can use Buffer.BlockCopy or Array.Copy .
Buffer.BlockCopy
Array.Copy
Depending on what you need, you can use LINQ. The syntax itself explains :)
var newArr = currentArray.Skip(4).Take(300).ToArray();
You can use Buffer.blockcopy. link here .
Source: https://habr.com/ru/post/1490722/More articles:Find current runtime in Delphi at runtime - debuggingHow to just clear a table before importing data? - ssishttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1490719/is-there-a-custom-service-factory-on-servicestack-something-analogous-to-custom-controller-factory-of-aspnet-mvc&usg=ALkJrhgp7KsmjHdF2bCVCkkLqxm3IaOCRwCreating a new workspace from the TFS command line - is the root working directory always added? - tfsFacebook Javascript SDK: send dialogue redirect_uri not working - facebookDjango authentication with modelform - pythonWhat causes a TypeLoadException for Migrate.exe for EF6? - sql-serverUsing handle descriptors that display nothing - ember.jsProper camera rotation processing (in TextureView) - androidApache POI causing autosave after autofilter - javaAll Articles