Version 6.0.0

Changed tons of stuff.... Everything that used to use this library has been horribly broken :D Except my lbraries as they have been updated
This commit is contained in:
Ryan Ward 2018-06-16 14:34:26 -04:00
parent 0f134f7465
commit 9c64cbcd97
7 changed files with 16 additions and 9 deletions

View File

@ -13,6 +13,7 @@ function bin.getVersion()
return bin.Version[1]..'.'..bin.Version[2]..'.'..bin.Version[3]
end
require("bin.support.utils")
local bit
if jit then
bit=require("bit")
elseif bit32 then
@ -20,13 +21,13 @@ elseif bit32 then
else
bit=require("bin.numbers.no_jit_bit")
end
base64=require("bin.converters.base64")
base91=require("bin.converters.base91")
bin.lzw=require("bin.compressors.lzw") -- A WIP
bits=require("bin.numbers.bits")
infinabits=require("bin.numbers.infinabits") -- like the bits library but works past 32 bits for 32bit lua and 64 bits for 64 bit lua.
bin.md5=require("bin.hashes.md5")
randomGen=require("bin.numbers.random")
local base64=require("bin.converters.base64")
local base91=require("bin.converters.base91")
local bin.lzw=require("bin.compressors.lzw") -- A WIP
local bits=require("bin.numbers.bits")
local infinabits=require("bin.numbers.infinabits") -- like the bits library but works past 32 bits for 32bit lua and 64 bits for 64 bit lua.
local bin.md5=require("bin.hashes.md5")
local randomGen=require("bin.numbers.random")
function bin.setBitsInterface(int)
bin.defualtBit=int or bits
end
@ -757,3 +758,4 @@ if love then
self.workingfile:close()
end
end
return bin

View File

@ -1,5 +1,5 @@
RADIX = 10^7 ;
RADIX_LEN = math.floor( math.log10 ( RADIX ) ) ;
RADIX = 10^7 ;
RADIX_LEN = math.floor( math.log10 ( RADIX ) ) ;
BigNum = {} ;
BigNum.mt = {} ;

View File

@ -1,3 +1,4 @@
local bin = require("bin")
local bits={}
bits.data=''
bits.t='bits'

View File

@ -1,3 +1,4 @@
local bin = require("bin")
local binNum=require("bin.numbers.BigNum")
local infinabits={}
infinabits.data=''

View File

@ -1,3 +1,4 @@
local bin = require("bin")
local __CURRENTVERSION=2
bin.registerBlock("t",function(SIZE_OR_NIL,ref)
local header=ref:read(3)

View File

@ -1,3 +1,4 @@
local bin = require("bin")
function table.print(tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do

View File

@ -0,0 +1 @@
local bin = require("bin")