No description
Find a file
2022-01-25 10:38:38 +01:00
docs regenerate docs 2022-01-25 10:38:06 +01:00
src add prepare mutation 2022-01-25 10:36:58 +01:00
tests renamed asString / toString to avoid overlap with other potential package 2020-11-13 18:59:36 +01:00
.gitattributes moved doc to docs/ 2020-12-10 16:55:19 +01:00
.gitignore added empty tests 2020-11-12 17:21:50 +01:00
bytesequtils.nimble bump nimble version 2022-01-25 10:37:47 +01:00
LICENSE Initial commit 2020-11-12 12:47:13 +01:00
README.md fix readme 2021-02-02 16:36:04 +01:00

bytesequtils

A collections of template and proc to make it easier to work with buffer storing data in either string or seq[byte]

Note that it doesn't support openArray[byte]. Conversion to string do not append '\0' therefore using it for as cstring or with C-API is unsafe.

Installation

nimble install bytesequtils

To generate the documentation locally use nimble doc --project src/bytesequtils.nim --out:docs/ or nimble gendoc

Conversion by moving memory

The goal is to obtains a stringrepresentation of seq[byte] without copy. To accomplish that, it is necessary to move memory. Since moveoperation can only be done on mutable memory, immutable data will be copied and thus, will be much slower.

Detailed documentaton

Read the documentation at https://clonkk.github.io/bytesequtils/.