Wireshark-dev: [Wireshark-dev] LUA Development Issue - Pulling a Character

From: Ahad L. Amdani <ahad.amdani@xxxxxxxx>
Date: Wed, 27 Sep 2006 14:47:17 +0000 (UTC)
Hello,

I'm doing some extension development on Wireshark through LUA and I can't seem 
to find out how to pull just a single character from the packet. The packet is 
encoded in little endian format, so I can use the tvbrange:le_uint and 
tvbrange:le_float functions to pull those types of values, but there doesn't 
seem to be a tvbrange:char() -- there is a tvbrange:string() but it doesn't 
work correctly, or at least, in my experience. I also tried the bytes() and 
tried to print out the bytearray, but that didn't work either.

Any suggestions?

Thanks,
  Ahad