Jacek Sieka
2c2544aec1
byteutils: `openArray[char]` version of `toBytes` ( #210 )
...
and compile-time tests
2023-11-14 11:53:47 +01:00
Jacek Sieka
32d6f43fff
byteutils: allow empty output buffers ( #157 )
...
* byteutils: allow empty output buffers
* er, closed
2023-01-19 08:19:26 +01:00
tersec
f173efc500
stylecheck: nnkArglist -> nnkArgList ( #127 )
...
* stylecheck: nnkArglist -> nnkArgList
* --stylecheck:error iff >= 1.6.0
2022-07-18 11:02:40 +00:00
Jordan Hrycaj
9c3596d9de
Migrate to `unittest2` ( #125 )
...
* Migrate to `unittest2`
why:
Global symbol overflow when running NIM 1.2 on Github ci suggests that
unit tests run sort of separately. The replacement library `unittest2`
provides that.
* Build ci dependencies
2022-07-08 10:34:21 +01:00
zah
9fe9cb7002
Add byteutils.hexToByteArrayStrict ( #120 )
2022-06-17 11:37:06 +03:00
Jacek Sieka
17cd8c846f
add `to0xHex` which returns a `0x`-prefixed hex string
2022-01-06 17:05:47 +01:00
Jacek Sieka
d8d914332d
random helpers ( #64 )
...
* random helpers
* arrayops as a home for small array/openArray utilities
* assign2 - a replacement for genericAssign and assignment operators in
general which in nim are very slow
* use assign2 in a few places to speed things up
* fixes
* fixes
2020-12-10 12:05:22 +01:00
Zahary Karadjov
61d5cfc376
Add array[N, byte].fromHex(string)
2020-07-02 18:00:39 +03:00
Jacek Sieka
720f1a254d
byteutils: compile-time to/fromBytes ( #35 )
2020-05-06 15:51:07 +02:00
Jacek Sieka
5512e89d4c
a few more cleanups
...
* add raises to endians2, bitops2 since they sometimes call C functions
2020-04-10 22:40:00 +03:00
Jacek Sieka
87ccf8e66b
hex byte: raise instead of assert on hex-to-byte odd lengths
2020-04-10 22:40:00 +03:00
Jacek Sieka
76beeb769e
fix fromBytes for zero length arrays
2020-03-07 23:29:46 +01:00
Jacek Sieka
ca8fb7ebd0
add slice assignment for openarray
2020-03-05 12:11:25 +02:00
Jacek Sieka
598fe151f8
non-cast implementation of toBytes, add fromBytes
2020-03-05 12:11:25 +02:00
Jacek Sieka
1edeabb453
Renames ( #17 )
...
* renames and warning fixes
* gitignore: nimcache
2019-12-20 13:23:30 +01:00
Jacek Sieka
9c18a1cc55
byteutils: lexicographical less than
2019-12-19 13:29:38 +01:00
Zahary Karadjov
11b6a831cb
Prepare for Nim v1.0.2
2019-10-23 09:36:16 +09:00
Jacek Sieka
c95cee45bc
add byteutils
2019-07-06 20:07:41 +02:00