nim-stew/stew
Jacek Sieka 5cf4feabea
leb128 + bitops fixes (#66)
Leb128 is a variable-length encoding for unsigned integers that is used
in a number of contexts - in particular, wasm, dwarf and protobuf.

This is an optimized low-level implementation that unrolls the loop
reading/writing the buffer - it is suitable to use as base for a more
specific API - no memory allocations, no exceptions.

This PR also fixes bitops2 to not raise on certaing uint->int
conversions, adapting bitops to nim 1.0 conversion rules by using a cast
instead of raising on uint->int conversion
2020-12-15 17:07:20 +02:00
..
ranges Fix a compilation error when using a 32-bit varint parser 2020-05-12 22:59:46 +03:00
shims Add string.add(openarray[char]) (to be optimized later) 2020-09-02 19:59:50 +03:00
windows Fix inherited objects problem. (#59) 2020-10-20 17:43:38 +03:00
README.md std_shims->stew 2019-07-06 19:12:24 +02:00
arrayops.nim random helpers (#64) 2020-12-10 12:05:22 +01:00
assign2.nim forward assign declarations (#65) 2020-12-10 17:08:24 +01:00
base32.nim Copied base32, 58, 64 from libp2p 2019-12-13 15:31:19 +02:00
base58.nim Copied base32, 58, 64 from libp2p 2019-12-13 15:31:19 +02:00
base64.nim Copied base32, 58, 64 from libp2p 2019-12-13 15:31:19 +02:00
bitops2.nim leb128 + bitops fixes (#66) 2020-12-15 17:07:20 +02:00
bitseqs.nim ssz no longer uses stew/bitseqs 2020-06-03 11:22:32 +02:00
byteutils.nim random helpers (#64) 2020-12-10 12:05:22 +01:00
closures.nim std_shims->stew 2019-07-06 19:12:24 +02:00
ctops.nim Allow any integer type to use CT.isEqual(). (#51) 2020-07-30 20:09:49 +03:00
endians2.nim fix use of compiler intrinsics in endians/bitops (#54) 2020-09-21 08:43:27 +02:00
faux_closures.nim Faux closures: a facility for creating closure-like non-closure procs 2020-07-07 20:29:04 +03:00
io.nim Prepare for Nim v1.0.2 2019-10-23 09:36:16 +09:00
io2.nim Fix getCurrentDir() gcc compilation warning. (#61) 2020-11-04 15:22:38 +02:00
leb128.nim leb128 + bitops fixes (#66) 2020-12-15 17:07:20 +02:00
objects.nim Add 'checkedEnumAssign' for validating tainted enum inputs 2020-06-24 14:15:45 +03:00
ptrops.nim ssz no longer uses stew/bitseqs 2020-06-03 11:22:32 +02:00
ranges.nim deprecate ranges (#31) 2020-05-07 07:11:43 +02:00
result.nim result -> results (#27) 2020-04-07 11:43:07 +02:00
results.nim results: prevent dangling cstring pointers in result (#63) 2020-12-09 17:21:12 +01:00
rlimits.nim POSIX stack size limiting 2020-06-25 19:01:01 +02:00
sequtils2.nim random helpers (#64) 2020-12-10 12:05:22 +01:00
strings.nim std_shims->stew 2019-07-06 19:12:24 +02:00
varints.nim leb128 + bitops fixes (#66) 2020-12-15 17:07:20 +02:00

README.md

Candidates for standard library inclusion - functions and helpers that are too small to put in their own git repository