Commit Graph

66 Commits

Author SHA1 Message Date
Jacek Sieka 54792c5a26
Deprecated - moved to stew 2019-07-06 21:04:33 +02:00
Ștefan Talpalaru c90fccd0cf
Merge branch 'buildnim' 2019-06-18 02:50:45 +02:00
Ștefan Talpalaru f3f9d5002e
build_nim.sh 2019-06-18 01:49:01 +02:00
Ștefan Talpalaru 7c422ae027
assert() -> doAssert() 2019-03-14 03:47:51 +01:00
zah 9960d8eea9 Add a helper for creating open arrays from pointers (#36)
* Add a helper for creating open arrays from pointers

* doh, toOpenArray is broken in Nim 0.19.0

* Make openarrays from typed pointers

* remove the ptr.toOpenArray seq work-around
2019-02-22 19:51:42 +02:00
Ștefan Talpalaru 0156cbd7f4 add "--threads:on" to tests 2019-01-11 15:33:51 +02:00
Ștefan Talpalaru d645a88dfe fix breakage with Nim HEAD 2019-01-05 14:42:21 +02:00
Bruno Škvorc a594f68d7d
Update README.md 2019-01-02 14:54:44 +01:00
Zahary Karadjov b11110240f add pointer distance function 2018-12-18 01:02:16 +02:00
Timothee Cour f776d57b3e fixup for backward compat 2018-11-28 02:28:23 +02:00
Timothee Cour 3b8e821b85 cleanup: use UncheckedArray instead of array[0, T]] 2018-11-28 02:28:23 +02:00
Timothee Cour 19645abeaf fix #30 2018-11-28 02:28:23 +02:00
Zahary Karadjov f268a02fb8 name the big endian bitrange APIs as a default choice 2018-11-27 13:31:24 +02:00
Zahary Karadjov 543d53ac7e adds bit manipulations over byte openarrays 2018-11-27 13:31:24 +02:00
Jacek Sieka 481a3d3086
appveyor: fix version check 2018-09-06 12:07:52 -06:00
Jacek Sieka e3f6a3ed39
readme: update license 2018-09-05 12:48:21 -06:00
Jacek Sieka bc978205dd
ci: update
readme: fix license, badges
2018-09-04 22:56:15 -06:00
Jacek Sieka 9736258d72
travis: use cached nim instead of docker 2018-09-02 19:45:12 -06:00
Eugene Kabanov 6798d45e5e Fix shallow for MutRange[T]. (#29)
* Fix shallow for MutRange[T].
Add shallow for slices of Range[T] and MutRange[T].
Add testing procedure.
Add tests.

* Fix appveyor to use status-im nim compiler.
2018-08-30 13:20:46 +03:00
Eugene Kabanov db888bc5ae MutRange advance() tests. (#28) 2018-08-28 13:28:10 +03:00
Eugene Kabanov 6efa5b365a Workaround for Nim's issue #8044. (#27) 2018-08-27 18:53:34 +03:00
Eugene Kabanov d49a57f943 Fix MutRange[T] problems. (#26) 2018-08-27 17:37:39 +03:00
Eugene Kabanov 49f32c604b Add seek() operation with tests. (#25)
* Add seek() operation with tests.

* Workaround for Nim issue with `|`.

* Range length from int32 to int.
seek() got renamed to advance().
Zero advance is allowed.
tryAdvance() is now non-throw version of advance().

* Allow advance() to make zero length ranges.
2018-08-27 15:20:30 +03:00
Timothee Cour 4e6835d041 add proper test for proof of stack allocation (#23) 2018-08-01 22:28:02 +03:00
Yuriy Glukhov 179c03822a
Merge pull request #21 from status-im/stackarrays
Fixed potential memory corruption, added allocStackArrayNoInit
2018-07-20 17:09:03 +03:00
Yuriy Glukhov 5dab1b35f4 Fixed potential memory corruption, added allocStackArrayNoInit 2018-07-20 13:05:08 +03:00
Yuriy Glukhov e3f7793de5
Merge pull request #16 from timotheecour/patch-1
Update tbitranges.nim
2018-07-20 10:48:26 +03:00
Yuriy Glukhov 55cb45a9ac
Merge pull request #19 from timotheecour/pr_toOpenArray_doc
test toOpenArray and clarify doc to say 0 in cast[ptr array[0, T] is irrelevant
2018-07-20 10:43:46 +03:00
Timothee Cour 8340969ec2 test toOpenArray and clarify doc to say 0 in cast[ptr array[0, T] is irrelevant 2018-07-19 20:44:09 -07:00
Timothee Cour bdf9f42d71
Update tbitranges.nim 2018-07-19 18:19:10 -07:00
Yuriy Glukhov 92cbfec917
Merge pull request #15 from status-im/bugfix-allow-empty-slices
bugfix: allow the slice operators to return empty ranges
2018-06-23 19:06:25 +03:00
Zahary Karadjov f6dae4edbc bugfix: allow the slice operators to return empty ranges 2018-06-23 16:25:33 +03:00
Zahary Karadjov cf118e240b add additional APIs for unsafe range construction that will be more searchable in the code 2018-06-21 11:37:29 +03:00
Zahary Karadjov ba631f7f5d add a pushFront operation for the bitranges 2018-06-20 21:23:46 +03:00
Yuriy Glukhov 1391b9595a
Merge pull request #14 from status-im/feature-bitranges
helpers for manipulating binary formats using bit sequences
2018-06-20 19:59:59 +03:00
Zahary Karadjov 580043724c helpers for manipulating binary formats using bit sequences 2018-06-20 19:45:10 +03:00
andri lim 8ea8a4ff27 fix hash function 2018-06-17 12:46:39 +03:00
andri lim 08478bc225 fix hash function 2018-06-17 12:46:39 +03:00
andri lim d6b0dad73e add hash function 2018-06-17 12:46:39 +03:00
Yuriy Glukhov c55fc02b24 Corrected useless test 2018-06-16 01:59:37 +03:00
Yuriy Glukhov 42c8e730de Fixes #10 2018-06-15 14:15:00 +03:00
Yuriy Glukhov 3435dc1155
Merge pull request #9 from jangko/concat_operation
fixes #8, add concat operation
2018-06-12 12:19:33 +03:00
andri lim af939d8ac4 fix zero length concat 2018-06-12 16:00:45 +07:00
andri lim 39f0a3cd03 fix concat operation 2018-06-08 10:07:47 +07:00
andri lim c23f4ddf1b add concat operation 2018-06-07 22:26:08 +07:00
Yuriy Glukhov a9f253b8a4
Merge pull request #7 from jangko/equality_operator
fixes #6,  add equality operator
2018-06-06 20:07:58 +03:00
andri lim d9e93b33a0 add equality operator 2018-06-06 22:53:02 +07:00
alexm-status 8b48ca4897
Update README.md 2018-05-30 14:38:44 -07:00
alexm-status 1c5bed1115
Update README.md 2018-05-27 14:16:14 -07:00
alexm-status 7fb4929c48
Update README.md 2018-05-23 17:48:26 -07:00