4 Commits

Author SHA1 Message Date
Jacek Sieka
45b0e9d157
arraybuf: fix dangling pointer and name workaround (#237)
https://github.com/nim-lang/Nim/issues/24260
https://github.com/nim-lang/Nim/issues/24261
2024-10-08 11:20:07 +02:00
Jacek Sieka
763147cf82
arraybuf: new constructor (#236)
* arraybuf: new constructor

also add a block to avoid symbol leaks

* speed up for same length
2024-10-07 22:13:34 +02:00
Jacek Sieka
68e8ae6413
arraybuf: fix iterator, setLen (#231) 2024-09-17 11:54:28 +00:00
Jacek Sieka
fc09b2e023
arraybuf: seq-like fixed-capacity container stored on the stack (#227)
Also includes `evalOnceAs`, a handy utility for avoiding creating a
temporary in templates when seeking to avoid double-evaluation of
parameters.
2024-09-02 13:02:11 +02:00