lua-users home
lua-l archive

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


On Wed, Feb 21, 2007 at 09:59:20AM +0100, Verriere Joseph wrote:
> I'm using LUA with wireshark and as I get context or termination ids
> orelse, I get a userdata type. In it, there are several values and I'd
> like to cut it in pieces of string or number to work on each. How can
> I put it in a table or in a number or string type ?

This is a wireshark specific question. There is no generoc way to access
internals of userdata (lua doesn't know what's in a userdata, its
untyped memory from its point of view), you have to use the functions
that the implementor of the wireshark provided to work with that
userdata.

Sam