/byteslice

Manipulate of byte slices with endianness ordering support

Primary LanguageGoMIT LicenseMIT

byteslice

Test Status Coverage Status GoDoc Go Report Card

How to

Run make help to see the available commands.

test it with coverage

$ make test
ok  	github.com/rlespinasse/byteslice	0.007s	coverage: 100.0% of statements

launch the benchmark

$ make bench
goos: ...
goarch: ...
pkg: github.com/rlespinasse/byteslice
BenchmarkRBit/get_low_bit_of_high_nibble-8              2000000000               1.76 ns/op
BenchmarkRBit/get_low_bit-8                             2000000000               1.76 ns/op
...
PASS
ok      github.com/rlespinasse/byteslice        154.701s