/// <inheritdoc />
        public ViewBufferValue[] GetPage(int pageSize)
        {
            if (pageSize <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(pageSize));
            }

            ViewBufferValue [] segment = new ViewBufferValue[Math.Max(pageSize, MinimumSize)];
            _allBuffers.Add(segment);
            return(segment);
        }
예제 #2
0
        private void AppendValue(ViewBufferValue value)
        {
            var page = GetCurrentPage();

            page.Append(value);
        }
 public void Append(ViewBufferValue value) => Buffer[Count++] = value;