Module that implements a fixed length array whose size is determined at runtime. Note: This is not ready for other people to use!
RtArray[T] = object L: Natural spart: seq[T] apart: array[ArrayPartSize, T]
UncheckedArray {...}{.unchecked.}[T] = array[0, T]
proc initRtArray[T](len: Natural): RtArray[T]
y < x
. proc getRawData[T](x: var RtArray[T]): ptr UncheckedArray[T]
y < x
.
© 2006–2018 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/rtarrays.html