Function ReadBuffer.this

Creates a new read buffer.

this (
  size_t size,
  size_t minAvailable = 1024,
  shared Allocator allocator = defaultAllocator
) @trusted;

this (
  shared Allocator allocator
);

Parameters

NameDescription
size Initial buffer size and the size by which the buffer will grow.
minAvailable minimal size should be always available to fill. So it will reallocate if free < minAvailable.
allocator Allocator.