scrachy.utils.numeric

Numeric utilities.

Functions

slice_int(bt, nbits)

Take the first nbits of bt and convert that into an integer.

to_int64(unsigned)

Convert an unsigned integer into a signed 64 bit integer.

to_uint64(signed)

Convert a signed (64 bit) integer into an unsigned 64 bit integer.