ScopeBuffer.opSlice

Retrieve a slice into the result.

  1. T[] opSlice(size_t lower, size_t upper)
    struct ScopeBuffer(T, alias realloc = .realloc)
    @system
    T[]
    opSlice
    (
    size_t lower
    ,
    size_t upper
    )
    in { assert (lower <= bufLen); assert (upper <= bufLen); assert (lower <= upper); }
    if (
    isAssignable!T &&
    !hasElaborateDestructor!T
    &&
    !hasElaborateCopyConstructor!T
    &&
    !hasElaborateAssign!T
    )
  2. inout(T)[] opSlice()

Return Value

Type: T[]

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

Meta