DataBuffer.opSlice

Retrieve a slice into the result.

  1. T[] opSlice(size_t lower, size_t upper)
  2. inout(T[]) opSlice()
    struct DataBuffer(T, alias realloc = core.stdc.stdlib.realloc)
    @system inout
    inout(T[])
    opSlice
    ()
    if (
    isAssignable!T &&
    !hasElaborateDestructor!T
    &&
    !hasElaborateCopyConstructor!T
    &&
    !hasElaborateAssign!T
    )

Return Value

Type: inout(T[])

A slice into the temporary buffer that is only valid until the next put() or DataBuffer goes out of scope.

Meta