I have an array:
byte[] element = new byte[16];
Which needs to be a part of a collection and saved in a file, byte-by-byte. This file is to be read by another application written in C++.
I could use an array or arrays:
byte[][] elementlist;
Or a list:
List<byte[]> elementlist;
Please explain:
Which structure is easier for a C++ Application to read with the least effort.
Which is the overall faster procedure (if performance difference is not negligible) when trying to access them later in any language.
In the given situation, what in your opinion should be the preferred method to pack the collection of bytes? If you have any other suggestions that I've not mentioned here, please feel free to share.
Thanks.