Beispiel #1
0
        public static void CopyToBigArray()
        {
            var array = new BigArray <long>(32);

            array[0] = 33;
            array[2] = 918;

            var dest = new BigArray <long>(34);

            array.CopyTo(2, dest, 0, 30);
            Assert.Equal(34, dest.Length);
            Assert.Equal(918, dest[0]);
        }
Beispiel #2
0
        public static void CopyToArray()
        {
            var array = new BigArray <long>(32);

            array[0] = 33;
            array[2] = 918;

            var dest = new long[5];

            array.CopyTo(0, dest, 0, 5);

            Assert.Equal(33, dest[0]);
            Assert.Equal(918, dest[2]);
        }