Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- s: seq[int] = @[]
- a: ref array[0..15, int]
- for i in 0..<16:
- s.add i
- proc rawBuffer(s: seq[int]): ptr int =
- {.emit: "result = `s`->data;".}
- a = cast[ref array[0..15, int]](s.rawBuffer)
Advertisement
Add Comment
Please, Sign In to add comment