forked from izaya/OC-PsychOS2
better type annotation for genHeader
This commit is contained in:
parent
f0fb5ff776
commit
4a5d9bcee2
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user