------------ FILE READING\r
ReadDumpFile = function (filename)\r
\r
- if filename == nil then \r
- return nil, 'Filename is empty'\r
- end\r
+ filename = filename or 'dumpdata.bin'\r
if #filename == 0 then\r
return nil, 'Filename length is zero'\r
end\r
return hash\r
end\r
return nil\r
- end,\r
+ end, \r
-- Takes a hex string and calculates a SHA1 hash\r
Sha1Hex = function(s)\r
if s == nil then return nil end\r
return hash\r
end\r
return nil\r
- end,\r
- \r
+ end, \r
+\r
\r
-- input parameter is a string\r
-- Swaps the endianess and returns a number, \r
-- end\r
\r
}\r
-return Utils\r
+return Utils
\ No newline at end of file