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 wishing 阅读(856) 评论(1) 推荐(0) 编辑