Renderscript does not let you allocate memory from scripts. This is a
fundamental part of Renderscript's design.

On Sat, Sep 17, 2011 at 12:25 AM, Macotonalds <[email protected]> wrote:

> Hello, everyone.
> I am studying Renderscript.
> I want to use the malloc() in a Renderscript code(.rs), but it seems
> that not supported.
> I get this error by using malloc.
>  "error: implicit declaration of function 'malloc' is invalid in C99"
>
> In the Renderscript, what functions can i use instead of the malloc?
> I'm hoping that someone can help me.
>
> Kind Regards,
> Macotonalds.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
[email protected]

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to