Crate nybble

Crate nybble 

Source
Expand description

§nybble

nybble is a helper crate to split byte vectors into nybbles and combine them back.

Enums§

NybbleOrder
The order of nybbles in a byte.

Functions§

byte_from_nybbles
Makes a byte from the high and low nybbles, with the high nybble specified first.
denybblify
Make a new byte array from data by combining adjacent bytes representing the high and low nybbles of each byte. The order argument determines which one comes first.
high_nybble
Gets the high nybble from a byte.
low_nybble
Gets the low nybble from a byte.
nybbles_from_byte
Gets the high and low nybble of a byte as a tuple, with the high nybble first.
nybblify
Make a new byte array from data with the bytes split into high and low nybbles. The order argument determines which one comes first.