ScopeBuffer.length

Used to shrink the length of the buffer, typically to 0 so the buffer can be reused. Cannot be used to extend the length of the buffer.

  1. size_t length [@property getter]
  2. size_t length [@property setter]
    struct ScopeBuffer(T, alias realloc = .realloc)
    @property
    void
    length
    (
    size_t i
    )
    in { assert (i <= this.used); }
    if (
    isAssignable!T &&
    !hasElaborateDestructor!T
    &&
    !hasElaborateCopyConstructor!T
    &&
    !hasElaborateAssign!T
    )

Meta