public static byte[] Pack(byte[] bytes)
        {
            var packed = Implode.DoImplode(bytes);

            Debug.Log("Packed from " + bytes.Length + " bytes to " + packed.Length + " bytes");
            return(packed);
        }
Exemple #2
0
        public void TestImplode()
        {
            System.Random r     = new System.Random();
            byte[]        bytes = new byte[512];
            r.NextBytes(bytes);

            var imploded = Implode.DoImplode(bytes);
            var exploded = ArxIO.Unpack(imploded);

            compare("imploded exploded", bytes, exploded);

            Debug.Log("test done");
        }