expanding<T> static method

Buffer<T> expanding<T>([
  1. int initialSize = 10
])

Like fixed but Overflow will cause the buffer to expand dynamically.

Buffer will be created with initialSize and will expand on demand. No messages are lost.

Implementation

static Buffer<T> expanding<T>([int initialSize = 10]) {
  return _ExpandingBuffer<T>(initialSize);
}