I am using C++ .NET.

Here is example:

cli::array<Byte>^ myBytes = bytes//the variable bytes
//contains unpredictable amount of bytes,
//it can be 32 or 128 or 256, no matter.

And I have to extract first 16 bytes from the array.

I need the following:

var1 have to be contains first 16 bytes from myBytes,

var2 have to be contains what's left after subtracting the first 16 bytes.