GArray conversion
- From: kuldeep dhaka <kuldeepdhaka9 gmail com>
- To: gnome-devel-list gnome org
- Subject: GArray conversion
- Date: Thu, 4 Apr 2013 20:38:02 +0530
hello guys,
i think a function like this could be useful.
c-code:
GArray * arr;
gdouble * natural_array;
unsigned int size;
arr =
g_array_new (FALSE, FALSE, sizeof (gdouble));
... add values to GArray ....
<store the size of garray in size var>
natural_array = g_array_natural(arr, sizeof(double));
#gnome, Juhaz : if you're talking about GArray, the accessor function isn't a
function but macro, so there's no performance penalty to it.
atleast still the function can be useful when we want to make things simple and when garray functionality is no longer required.
--
Kuldeep Singh Dhaka+91-8791676237
Skype: kuldeep.dhaka
kuldeepdhaka9 gmail comProgrammer, Open Source, Web Developer, Entrepreneur, Animal Lover, Student, Blogger, Reverse Engineer, Embedded System.
Bitcoins Accepted.
My GnuPG Public KeyFork Me
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]