mirror of
https://github.com/status-im/nim-stew.git
synced 2025-01-09 11:45:42 +00:00
7 lines
186 B
Nim
7 lines
186 B
Nim
proc add*(s: var string, data: openArray[char]) =
|
|
if data.len > 0:
|
|
let prevEnd = s.len
|
|
s.setLen(prevEnd + data.len)
|
|
copyMem(addr s[prevEnd], unsafeAddr data[0], data.len)
|
|
|