Utils/rtarrays/rawMem

Source   Edit  

As of Nim 2.3.1, std/rtarrays is unstable and only contains two routiues and even cannot get length!

Types

RtArray[T] = object
Source   Edit  

Procs

proc `$`(self: RtArray): string
Source   Edit  
proc `==`[T](self, o: RtArray[T]): bool
Source   Edit  
proc `=copy`[T](dest: var RtArray[T]; src: RtArray[T])
Source   Edit  
proc `=destroy`(self: RtArray[auto]) {....raises: [].}
Source   Edit  
proc `=trace`[T](dest: var RtArray[T]; env: pointer)
Source   Edit  
proc `=wasMoved`[T](self: var RtArray[T])
Source   Edit  
proc `@`[T](self: RtArray[T]): seq[T]
Source   Edit  
proc `[]`[T](self: RtArray[T]; i: int): T
Source   Edit  
proc `[]=`[T](self: var RtArray[T]; i: int; val: T)
Source   Edit  
proc getRawData[T](self: var RtArray[T]): ptr UncheckedArray[T]
we only gant to return a writable view of self, may not be ptr UncheckedArray in the future Source   Edit  
proc getRORawData[T](self: RtArray[T]): ptr UncheckedArray[T]
Source   Edit  
proc initRtArray[T](len: Natural): RtArray[T]
Source   Edit  
proc initRtArray[T](oa: openArray[T]): RtArray[T]
Source   Edit  
proc len(self: RtArray): int
Source   Edit  

Iterators

iterator items[T](self: RtArray[T]): T
Source   Edit  
iterator pairs[T](self: RtArray[T]): (int, T)
Source   Edit