Пример #1
0
            public Builder <T> Append(T value)
            {
                var span = GetSpan();

                if (_offset + 1 >= span.Length)
                {
                    // TODO: Consider a specifiable growth strategy

                    _memory = _pool.Reallocate(_memory, (_memory.Length * 3) / 2);
                }

                span[_offset++] = value;
                return(this);
            }