1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-21 19:44:21 -05:00

better type annotation for genHeader

This commit is contained in:
XeonSquared 2020-06-25 09:39:31 +10:00
parent f0fb5ff776
commit 4a5d9bcee2

View File

@ -31,7 +31,7 @@ local function cleanPath(path)
return table.concat(pt,"/") return table.concat(pt,"/")
end end
function mtar.genHeader(fname,len) -- generate a header for file *fname* when provided with file length *len* function mtar.genHeader(fname,len) -- string number -- string -- generate a header for file *fname* when provided with file length *len*
return string.format("%s%s%s",cint(fname:len(),2),fname,cint(len,2)) return string.format("%s%s%s",cint(fname:len(),2),fname,cint(len,2))
end end