View.length

Resizes the total length of the view.

This allows the user to either keep the size the same or shrink the view, but never extend it.

  1. size_t length [@property getter]
  2. size_t length [@property setter]
    struct View(T, SectorType = BasicSector!(T))
    @property
    void
    length
    (
    size_t size
    )
    if (
    isSector!(SectorType)()
    )

Parameters

size size_t

the new size

Throws

RangeError if an attempt to extend the length is made

Meta