Array.this

Construct a buffer.

  1. this(size_t capacity, size_t growing)
  2. this(void[] data)
  3. this(void[] data, size_t readable)
    class Array
    this

Parameters

data void[]

The backing array to buffer within.

readable size_t

The number of bytes initially made readable.

Remarks: Prime buffer with an application-supplied array, and indicate how much readable data is already there. A write operation will begin writing immediately after the existing readable content.

This is commonly used to attach a Buffer instance to a local array.

Meta