Menu

Obec Kajal
ObecKajal

rozšírené vyhľadávanie

If you are looking for a more advanced tool, I can suggest Lua-based libraries for file I/O or data manipulation.

-- Example Usage (as found on Stack Overflow) -- Usage: lua xd.lua < file local offset=0 -- Starts at offset 0 while true do local s=io.read(16) -- Reads 16 bytes if s==nil then return end -- Ends at end of file io.write(string.format("%08X ",offset)) -- Prints offset string.gsub(s,"(.)", function (c) io.write(string.format("%02X ",string.byte(c))) -- Prints hex end) io.write(string.rep(" ",3*(16-string.len(s)))) io.write(" ",string.gsub(s,"%c","."),"\n") -- Prints ASCII offset=offset+16 end Use code with caution. (Based on snippet in) To give you a better review, could you tell me: Are you trying to or inspect game data ? Are you using standard Lua , LuaJIT , or Luau (Roblox) ?

Is it possible to perform a hexdump in Lua code - Stack Overflow

  • 1297
    Prvá písomná zmienka
  • 1555
    Počet obyvateľov
  • 117
    Metrov nad morom
  • 1382
    Hektárov

Xd.lua < Legit – Collection >

If you are looking for a more advanced tool, I can suggest Lua-based libraries for file I/O or data manipulation.

-- Example Usage (as found on Stack Overflow) -- Usage: lua xd.lua < file local offset=0 -- Starts at offset 0 while true do local s=io.read(16) -- Reads 16 bytes if s==nil then return end -- Ends at end of file io.write(string.format("%08X ",offset)) -- Prints offset string.gsub(s,"(.)", function (c) io.write(string.format("%02X ",string.byte(c))) -- Prints hex end) io.write(string.rep(" ",3*(16-string.len(s)))) io.write(" ",string.gsub(s,"%c","."),"\n") -- Prints ASCII offset=offset+16 end Use code with caution. (Based on snippet in) To give you a better review, could you tell me: Are you trying to or inspect game data ? Are you using standard Lua , LuaJIT , or Luau (Roblox) ? xd.lua

Is it possible to perform a hexdump in Lua code - Stack Overflow If you are looking for a more advanced