SliceBuffer.add

Appends a new piece of data to the end of the buffer. The item is also added to the slices list.

class SliceBuffer(T)
override
T[]
add
(
const(T)[] data
)

Parameters

data const(T)[]

data to append to buffer

Return Value

Type: T[]

in-place slice to the location in the buffer where the new item was appended

Meta