Beispiel #1
0
        public static void SplitIntoChunks_Sekien_64k_Chunks()
        {
            var fastCdc = new FastCdc(
                32 * 1024,
                64 * 1024,
                128 * 1024);

            using var stream = File.OpenRead(Image);
            var chunks = fastCdc.SplitIntoChunks(stream);

            Assert.Equal(
                new[] { 32857, 76609 },
                chunks.Select(c => c.Length));
        }
Beispiel #2
0
        public static void SplitIntoChunks_Sekien_16k_Chunks()
        {
            var fastCdc = new FastCdc(
                8 * 1024,
                16 * 1024,
                32 * 1024);

            using var stream = File.OpenRead(Image);
            var chunks = fastCdc.SplitIntoChunks(stream);

            Assert.Equal(
                new[] { 22366, 8282, 16303, 18696, 32768, 11051 },
                chunks.Select(c => c.Length));
        }