Re: [Vala] box array does not work



many thanks, clear.


2014-07-18 12:29 GMT+02:00 Luca Bruno <lethalman88 gmail com>:

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]