Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion async_postgres/pg_bytes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ proc readString*(src: openArray[byte], off, len: int): string =
copyMem(addr result[0], addr src[off], len)

proc readBytes*(src: openArray[byte], off, len: int): seq[byte] =
## Copy `len` bytes from src starting at off into a new seq[byte].
## Copy `len` bytes from src starting at off into a new `seq[byte]`.
result = newSeq[byte](len)
if len > 0:
copyMem(addr result[0], addr src[off], len)