Exemplo n.º 1
0
        public void GetMultiRowSpan(int width, int height, int min, int max)
        {
            using (Buffer2D <int> buffer = Configuration.Default.MemoryAllocator.Allocate2D <int>(width, height))
            {
                var rows = new RowInterval(min, max);

                Span <int> span = buffer.GetMultiRowSpan(rows);

                ref int expected0      = ref buffer.Span[min * width];
                int     expectedLength = (max - min) * width;

                ref int actual0 = ref span[0];