lua-users home
lua-l archive

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


On Sun, Jul 26, 2009 at 21:15, Philippe Lhoste<PhiLho@gmx.net> wrote:
> On 26/07/2009 18:18, Cosmin Apreutesei wrote:
>>
>> Is there a way to get the address of a buffer object? I need to store
>> the address of a buffer in a structure that I'll pack with
>> alien.struct.pack. The only solution I have found till now involves
>> creating another buffer just to store and later retrieve the address
>> of the first one.
>
> I used a buffer in a short test of Alien:
> http://stackoverflow.com/questions/272425/calling-win32-functions-returning-strings-with-alien-in-lua
> I am not sure if it answers your question, as I used it in a function call,
> not a structure.

thanks, but I need it to get the buffer's address so I can store it in
a string with struct.pack...