开发者

Lua for Wireshark: Tvp.new_real() doesn't exist?

The d开发者_C百科ocumentation for Lua for Wireshark claims that the Tvp class has a new_real() method. However, this method seems to not exist when I try to use it in my Lua script. I'm using Wireshark 1.3.5 (latest dev version) for Windows x64. Did the method get renamed? If so, to what? Is there a better support forum for this particular question?


It turns out the function was moved into the ByteArray class -- you call ByteArray:tvb() rather than Tvb.real_new(byteArray) now.


Very commonly if I am not sure what methods are available in a library I use the pairs function to print them out. I guess you could use the same approach with your problem.

for k, v in pairs(Tvp) do print(k, v) end
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜