3.6 KiB
3.6 KiB
Bin Rewrite Progress!
Note: A lot breaks (Almost everything) for the sake of consistency Progress: [===- - - - - - - 15% - - - - - - - - -]
List of new methods
- bin.newFromBase64(data)
- bin.newFromBase91(data)
- bin.newFromHex(data)
- bin:read(n) -- works just like normal read on a file for both stream/bin files
- bin:sub(a,b) -- works like string.sub() but for bin objects
- bin:seekSet(n) -- sets the seek position on the file
- bin.toBase64(s)
- bin.fromBase64(s)
- bin.toBase91(s)
- bin.fromBase91(s)
- bin.getnumber(num,len,fmt,func)
List of converted methods and their status
- log(data,name,fmt)
- bin.getLuaVersion()
- bin.load(filename,s,r)
- bin.new(string data) -- Does not accept b64 or hex data anymore! Use new methods for that ^^^
- bin.stream(file,lock)
- bin.newTempFile(data)
- bin:getSize(fmt) -- gets the size of the string fmt is how you want to format it. left empte returns number of bites as a lua number supports lua formats! And also I added the %b format for base64
- bin:getData(fmt) -- returns the data of the object as a string, supports %x(hex), %X(HEX) and %b(base64)
- bits.new(n)
- bin.newVFS()
- bin:tackE(data) -- tacks data onto the end of a file
- bin:tofile(path)
- bin.loadVFS(path)
- bin:newDataBuffer(s)
- bin.bufferToBin(b)
- bin.binToBuffer(b)
- bin:getDataBuffer(a,b)
- bin.newNamedBlock(indexSize)
- bin.newStreamedNamedBlock(indexSize,path)
- bin.loadNamedBlock(path)
- bin.namedBlockManager(arg)
- bin.randomName(n,ext)
- bin.NumtoHEX(n)
- bin.HEXtoBin(s)
- bin.HEXtoStr(s)
- bin.tohex(s)
- bin.fromhex(s)
- bin.endianflop(data)
- bin.getVersion()
- bin.escapeStr(str)
- bin.ToStr(tab)
- bin.packLLIB(name,tab,ext)
- bin.unpackLLIB(name,exe,todir,over,ext)
bin.fileExist(path)NOW io.fileExists(path)- bin.closeto(a,b,v)
- bin.textToBinary(txt)
- bin.decodeBits(bindata)
- bin.trimNul(s)
- bin.getIndexSize(tab)
- bits.numToBytes(num,occ)
- binobj:tofile(filename)
- binobj:clone()
- binobj:compare(other binobj,diff)
- binobj:sub(a,b)
- binobj:tonumber(a,b)
- binobj:getbyte(n)
- binobj:tobits(i)
- binobj:getHEX(a,b)
- binobj:scan(s,n,f)
- binobj:streamData(a,b)
- binobj:streamread(a,b)
- binobj:canStreamWrite()
- bitobj:conv(n)
- bitobj:tobytes()
- bitobj:tonumber()
- bitobj:isover()
- bitobj:getBin()
- binobj:getHash(n)
- binobj:getData()
- blockReader:getBlock(name)
- binobj:setEndOfFile(n)
- binobj:reverse()
- binobj:flipbits()
- binobj:segment(a,b)
- binobj:insert(a,i)
- binobj:parseN(n)
- binobj:getlength()
- binobj:shift(n)
- binobj:delete(a,b)
- binobj:encrypt(seed)
- binobj:decrypt(seed)
- binobj:shuffle()
- binobj:mutate(a,i)
- binobj:merge(o,t)
- binobj:parseA(n,a,t)
- binobj:getHEX(a,b)
- binobj:cryptM()
- binobj:addBlock(d,n)
- binobj:getBlock(t,n)
- binobj:seek(n)
- binobj:morph(a,b,d)
- binobj:fill(n,d)
- binobj:fillrandom(n)
- binobj:shiftbits(n)
- binobj:shiftbit(n,i)
- binobj:streamwrite(d,n)
binobj:open()- binobj:close()
- binobj:wipe()
- binobj:tackB(d)
- binobj:tackE(d,fit,updateseek)
- binobj:parse(n,f)
- binobj:flipbit(i)
- binobj:gsub()
- blockWriter:addNamedBlock(name,value)
bitobj:add(i)bitobj:sub(i)bitobj:multi(i)bitobj:div(i)- bitobj:flipbits()
- bitobj:getBin()