6 lines
150 B
Nim
6 lines
150 B
Nim
|
proc baseAddr*[T](x: openarray[T]): pointer = cast[pointer](x)
|
||
|
|
||
|
proc shift*(p: pointer, delta: int): pointer =
|
||
|
cast[pointer](cast[int](p) + delta)
|
||
|
|