Re: [Vala] box array does not work
- From: Michele Dionisio <michele dionisio gmail com>
- To: Luca Bruno <lethalman88 gmail com>
- Cc: Vala List <vala-list gnome org>
- Subject: Re: [Vala] box array does not work
- Date: Fri, 18 Jul 2014 13:06:40 +0200
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]