Re: [Vala] box array does not work



On 18/07/2014 12:22, Michele Dionisio wrote:
but the message sya that I have to box it.
The message is wrong.

Can you explain me why I cannot box an array?
Because arrays in vala carry a length. Use a pointer and manage the
memory manually, like TreeMap<uint8*, FileInformation>.
Or wrap your uint8[] array in a class.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]