Exemplo n.º 1
0
        public ViewBufferValue[] GetPage(int size)
        {
            var buffer = new ViewBufferValue[size];

            CreatedBuffers.Add(buffer);
            return(buffer);
        }
Exemplo n.º 2
0
        private void AppendValue(ViewBufferValue value)
        {
            var page = GetCurrentPage();

            page.Append(value);
        }
Exemplo n.º 3
0
        /// <inheritdoc />
        public void ReturnSegment(ViewBufferValue[] segment)
        {
            if (segment == null)
            {
                throw new ArgumentNullException(nameof(segment));
            }

            Array.Clear(segment, 0, segment.Length);

            if (_available == null)
            {
                _available = new List<ViewBufferValue[]>();
            }

            _available.Add(segment);
        }
Exemplo n.º 4
0
 public void Append(ViewBufferValue value) => Buffer[Count++] = value;