lua data type to/from byte array conversion module for lua 5.2