[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Convert userdata to hex string
- From: Peter Smith <psmith135@...>
- Date: Sat, 20 Feb 2010 23:54:53 +0200
I am trying to use Lua to extract reassembled packet data in wireshark. I have the required packet data stored in a variable with userdata type. Now I need to print that data as a hex string to pass it over stdout to another program. Could someone please help me how to write a function in base Lua 5.1 to print out a userdata variable as a hex string?