mirror of
https://github.com/status-im/nim-ranges.git
synced 2025-01-15 07:14:27 +00:00
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)
|
|
|