bytesequtils
Nim package to manipulate buffer as either seq[byte] or string
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install bytesequtils
choosenim install bytesequtils
git clone https://github.com/Clonkk/bytesequtils
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| bytesequtils | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/Clonkk/bytesequtils |
|---|---|
| Homepage | https://clonkk.github.io/bytesequtils/ |
| Registry Source | nimble_official |
README
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/.