ReadBuffer.this

Creates a new read buffer.

  1. this(size_t size, size_t minAvailable, Allocator allocator)
    struct ReadBuffer(T = ubyte)
    @trusted
    this
    (
    size_t size
    ,
    size_t minAvailable = 1024
    ,)
  2. this(Allocator allocator)

Parameters

size size_t

Initial buffer size and the size by which the buffer will grow.

minAvailable size_t

minimal size should be always available to fill. So it will reallocate if $(D_PSYMBOL free) < minAvailable.

allocator Allocator

Allocator.

Meta