lua tips: convert between bytes and int
摘要:converting from bytes to int (taking care of endianness at byte level, and signedness):--------------------------------------------------------------------------------------------require 'struct'-- convert character codes to a Lua string - this may come from your sourcelocal str = string.cha
阅读全文
posted @ 2013-09-25 03:06
浙公网安备 33010602011771号