ConcatBuffer.add

Reserves a new piece of data at the end of the buffer.

  1. T[] add(const(T)[] data)
  2. T[] add(size_t length)
    class ConcatBuffer(T)
    T[]
    add
    (
    size_t length
    )

Parameters

length size_t

amount of bytes to reserve

Return Value

Type: T[]

in-place slice to the reserved data in the buffer

Meta